Re: Reading storage parameters

From: Thom Brown <thom(at)linux(dot)com>
To: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Reading storage parameters
Date: 2012-06-21 12:26:05
Message-ID: CAA-aLv64jsv1U5rXCzhgZobYbSikUidFKpLSPJf7KvJSXAwLdg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 21 June 2012 13:12, Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raghavendra 2012-06-21 12:27:48 Re: Reading storage parameters
Previous Message Sergey Konoplev 2012-06-21 12:20:54 Re: Please make it easy to drop a database that is in use