mirror of
https://github.com/levinsv/pgadmin3.git
synced 2026-09-05 14:14:53 -06:00
inherit support
This commit is contained in:
parent
a5e9a9fd14
commit
4760f322cd
3 changed files with 2 additions and 4 deletions
|
|
@ -247,12 +247,11 @@ pgObject *pgPartitionFactory::CreateObjects(pgCollection *coll, ctlTree *browser
|
|||
query += wxT(",\n(SELECT array_agg(provider) FROM pg_seclabels sl2 WHERE sl2.objoid=rel.oid AND sl2.objsubid=0) AS providers");
|
||||
query += wxT(",case when lk.relation=rel.oid then null else pg_get_partkeydef(rel.oid) end \n AS partkeydef");
|
||||
query += wxT(",case when lk.relation=rel.oid then 'AccessExclusiveLock' else pg_get_expr(rel.relpartbound, rel.oid) end \n AS partexp");
|
||||
query += wxT(",ii.inhparent is not null AS ispartitioned");
|
||||
query += wxT(",(select count(*)from pg_inherits ii where ii.inhparent=rel.oid)>0 AS ispartitioned");
|
||||
|
||||
|
||||
query += wxT(" FROM pg_class rel\n")
|
||||
wxT(" JOIN pg_inherits i ON (rel.oid = i.inhrelid) \n")
|
||||
wxT(" LEFT OUTER JOIN pg_inherits ii on ii.inhparent=rel.oid\n")
|
||||
wxT(" LEFT JOIN pg_locks lk ON locktype='relation' and granted=true and mode='AccessExclusiveLock' and relation=rel.oid\n")
|
||||
wxT(" LEFT OUTER JOIN pg_tablespace spc on spc.oid=rel.reltablespace\n")
|
||||
wxT(" LEFT OUTER JOIN pg_description des ON (des.objoid=rel.oid AND des.objsubid=0 AND des.classoid='pg_class'::regclass)\n")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue