Skip site navigation (1) Skip section navigation (2)

TODO: You can alter it, but you can't view it

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: postgres hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: TODO: You can alter it, but you can't view it
Date: 2010-09-27 05:19:04
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers

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".

This puts us in the wierd place that while one can ALTER various 
reloptions, one cannot check them to see if they *need* to be altered. 
That's a particularly bad situation given that changing reloptions 
requires a lock on the table (though less of one in 9.1).

I propose that we have an additional system view, pg_class_reloptions 
(or pg_table_reloptions if reloptions aren't relevant for views and 
indexes).  It would have the following columns:


comments/objections/something I missed in the internal functions or 9.1 
patches which already does this?

                                   -- Josh Berkus
                                      PostgreSQL Experts Inc.


pgsql-hackers by date

Next:From: Itagaki TakahiroDate: 2010-09-27 05:30:02
Subject: Re: TODO: You can alter it, but you can't view it
Previous:From: David BorehamDate: 2010-09-27 04:17:11
Subject: pg_filedump binary for CentOS

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group