--- a/pgtoolkit/pgbrowser.py Fri Feb 15 16:38:23 2013 +0100
+++ b/pgtoolkit/pgbrowser.py Tue Feb 26 14:40:39 2013 +0100
@@ -66,7 +66,7 @@
class Table:
- def __init__(self, browser, schema, name, owner, size, description):
+ def __init__(self, browser, schema, name, owner, size, description, options):
self._columns = None
self._constraints = None
self._indexes = None
@@ -76,6 +76,7 @@
self.owner = owner
self.size = size
self.description = description
+ self.options = options or []
def refresh(self):
self.refresh_columns()
@@ -269,7 +270,8 @@
c.relname as "name",
pg_catalog.pg_get_userbyid(c.relowner) as "owner",
pg_catalog.pg_relation_size(c.oid) as "size",
- pg_catalog.obj_description(c.oid, 'pg_class') as "description"
+ pg_catalog.obj_description(c.oid, 'pg_class') as "description",
+ c.reloptions as "options"
FROM pg_catalog.pg_class c
LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
WHERE n.nspname = %s AND c.relkind IN ('r','s','')