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

Re: Proposed patch for sequence-renaming problems

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: Proposed patch for sequence-renaming problems
Date: 2005-09-28 02:38:50
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-patches
Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> I looked over the patch, and while it does fix the problem for SERIAL, I
> am concerned about expecting users to user ::regclass in normal usage,
> and I am concerned about adding something we will have to support in the
> future when we come up with a better solution.  Why is regclass not
> being used automatically?

If we provide both nextval(text) and nextval(regclass), then the parser
will interpret "nextval('something')" as nextval(text) because that's
the more preferred resolution of an unknown-type literal.  The only way
to make regclass be used "automatically" would be to remove the
text-input variant.  That is where I want to go eventually, but it seems
pretty risky to jump there in one step.  The proposed patch adds
regclass-based functions alongside the existing functionality, so that
people can migrate as they choose; it does not open any risks of
breaking cases that work now.

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Chris BrowneDate: 2005-09-28 03:22:12
Subject: Re: State of support for back PG branches
Previous:From: Bruce MomjianDate: 2005-09-28 01:58:01
Subject: Re: Open items list for 8.1

pgsql-patches by date

Next:From: Bruce MomjianDate: 2005-09-28 03:48:56
Subject: Re: Proposed patch for sequence-renaming problems
Previous:From: Kris JurkaDate: 2005-09-28 01:18:15
Subject: high values for client_min_messages

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