Search Postgresql Archives

Re: Pulling data from a constraint def

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

 



Josh Kupershmidt <schmiddy@xxxxxxxxx> writes:
> On Thu, May 13, 2010 at 8:08 PM, Tom Lane <tgl@xxxxxxxxxxxxx> wrote:
>> Well, the inability to change the list of values is certainly an
>> unpleasant limitation, but is it so fatal that we should hide the
>> feature from people who could possibly use it?  I think not.

> I happened upon this article relevant to the subject after googling a bit:
> http://www.justatheory.com/computers/databases/postgresql/enforce-set-of-values.html

> One of the comments suggests adding an entry to pg_enum to expand the
> legal values of an existing ENUM type. How safe is this idea?

The trick is for the OID of the added entry to sort in the position you
want it relative to the existing entries.  If you don't care about that,
it's fine.

			regards, tom lane

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[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