Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDGZj-0004eR-2a for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Mar 2013 15:48:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UDGZi-0004xX-Iz for pgsql-bugs@arkaria.postgresql.org; Wed, 06 Mar 2013 15:48:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDGZh-0004wi-Ge for pgsql-bugs@postgresql.org; Wed, 06 Mar 2013 15:48:13 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UDGZg-0006Ak-CZ for pgsql-bugs@postgresql.org; Wed, 06 Mar 2013 15:48:12 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r26Fm8m0016140; Wed, 6 Mar 2013 10:48:08 -0500 (EST) From: Tom Lane To: Andres Freund cc: maxim.boguk@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7920: Sequence rename leave stale value for sequence_name In-reply-to: <20130306145136.GB4970@alap2.anarazel.de> References: <20130306092101.GK13803@alap2.anarazel.de> <14588.1362580075@sss.pgh.pa.us> <20130306145136.GB4970@alap2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Wed, 06 Mar 2013 15:51:36 +0100" Date: Wed, 06 Mar 2013 10:48:08 -0500 Message-ID: <16139.1362584888@sss.pgh.pa.us> X-Pg-Spam-Score: -2.5 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Andres Freund writes: > On 2013-03-06 09:27:55 -0500, Tom Lane wrote: >> Removing the sequence_name column alone would also break existing code, >> for ... um ... not much. > The only argument I see is reduced chance of people making errors. Code > that actually uses sequence_name is broken. Well, only if you rename the sequence, which is something many people would never do. > If we had something like columns that are computed on output, we could > use that. What we could do is invent a new pseudo-column type like > tableoid that renders as text.. > In the end it doesn't seem worth bothering. Yeah. If I recall the older discussions correctly, we talked about somehow splitting a sequence's storage between transactionally-updatable and non-transactionally-updatable parts, so that we could make altering a sequence's parameters transactional. Preserving anything remotely like "select * from sequence" would require a view or some such. Whenever somebody gets around to attacking that whole problem, I'll be for that; but in the meantime it seems like we should leave it alone instead of making marginal changes. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs