Re: Reading storage parameters - Mailing list pgsql-general

From Thom Brown
Subject Re: Reading storage parameters
Date
Msg-id CAA-aLv64jsv1U5rXCzhgZobYbSikUidFKpLSPJf7KvJSXAwLdg@mail.gmail.com
Whole thread Raw
In response to Reading storage parameters  (Daniele Varrazzo <daniele.varrazzo@gmail.com>)
Responses Re: Reading storage parameters
List pgsql-general
On 21 June 2012 13:12, Daniele Varrazzo <daniele.varrazzo@gmail.com> 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.

SELECT c.reloptions
FROM pg_class c
INNER JOIN pg_namespace n
  ON c.relnamespace = n.oid
WHERE c.relname = 'tablename'
AND n.nspname = 'schemaname';

--
Thom

pgsql-general by date:

Previous
From: Sergey Konoplev
Date:
Subject: Re: Please make it easy to drop a database that is in use
Next
From: Raghavendra
Date:
Subject: Re: Reading storage parameters