| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Itagaki Takahiro <itagaki(dot)takahiro(at)gmail(dot)com> |
| Cc: | Josh Berkus <josh(at)agliodbs(dot)com>, postgres hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: TODO: You can alter it, but you can't view it |
| Date: | 2011-02-22 02:25:04 |
| Message-ID: | 201102220225.p1M2P4G14119@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Itagaki Takahiro wrote:
> On Mon, Sep 27, 2010 at 2:19 PM, Josh Berkus <josh(at)agliodbs(dot)com> wrote:
> > While working on some database maintenance, I was just tripped up by the
> > fact that there is no good way to query reloptions for tables. ?By "no good
> > way" I mean "no way which does not involve UNNEST and regexps or procedural
> > code".
>
> Can you use pg_options_to_table() for your purpose?
>
> =# CREATE TABLE tbl (i integer) with (fillfactor = 70);
> =# SELECT (pg_options_to_table(reloptions)).* FROM pg_class WHERE oid
> = 'tbl'::regclass;
> option_name | option_value
> -------------+--------------
> fillfactor | 70
Right now pg_options_to_table() is not documented. Should it be?
--
Bruce Momjian <bruce(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ It's impossible for everything to be true. +
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2011-02-22 02:33:02 | Re: configure gaps |
| Previous Message | Itagaki Takahiro | 2011-02-22 01:59:34 | Re: validating foreign tables |