Skip to content

Commit

Permalink
Support partitioned tables
Browse files Browse the repository at this point in the history
Show the parent table as well as the partitioned table in the list of tables and allow tiles to be generated. Closes CrunchyData#78
  • Loading branch information
pramsey authored Jan 27, 2021
1 parent 7ebf866 commit 5b90e0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layer_table.go
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ func GetTableLayers() ([]LayerTable, error) {
LEFT JOIN pg_index i ON (c.oid = i.indrelid AND i.indisprimary AND i.indnatts = 1)
LEFT JOIN pg_attribute ia ON (ia.attrelid = i.indexrelid)
LEFT JOIN pg_type it ON (ia.atttypid = it.oid AND it.typname in ('int2', 'int4', 'int8'))
WHERE c.relkind IN ('r', 'v', 'm')
WHERE c.relkind IN ('r', 'v', 'm', 'p')
AND t.typname = 'geometry'
AND has_table_privilege(c.oid, 'select')
AND has_schema_privilege(n.oid, 'usage')
Expand Down

0 comments on commit 5b90e0a

Please sign in to comment.