Search Postgresql Archives

Re: Reading storage parameters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 21, 2012 at 5:42 PM, Daniele Varrazzo <daniele.varrazzo@xxxxxxxxx> wrote:
Hello,

is there a way to read the storage parameters values set on a table
(i.e. what set with ALTER TABLE foo SET (autovacuum_enabled=false) and
so on...)? I can't find it in the docs.


One way is with 

\d+ <tablename>

Second with pg_class.

postgres=# select relname,reloptions from pg_class where relname='foo';
 relname |         reloptions
---------+----------------------------
 foo  | {autovacuum_enabled=false}
(1 row)


---
Regards,
Raghavendra
EnterpriseDB Corporation
Blog: http://raghavt.blogspot.com/


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux