Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsvOo-0000TO-Rq for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Sep 2017 18:31:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dsvOo-0005YY-9y for pgsql-bugs@arkaria.postgresql.org; Fri, 15 Sep 2017 18:31:34 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsvOn-0005YP-W2 for pgsql-bugs@postgresql.org; Fri, 15 Sep 2017 18:31:34 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dsvOf-0003pp-VT for pgsql-bugs@postgresql.org; Fri, 15 Sep 2017 18:31:33 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.nyi.internal (Postfix) with ESMTP id 407C120E2B; Fri, 15 Sep 2017 14:31:24 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute7.internal (MEProxy); Fri, 15 Sep 2017 14:31:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc:x-sasl-enc; s= fm1; bh=k1GL25BKEytZKMVGO6RRI6d7iYuS3HR3N5uLJmlcRFU=; b=q6aKDDo2 M467qZZsQ1O0ZyLMQEcpr3gHorliLO5CUghVPKgOk0YOggFfVgYBqptpNgj880Zl FOdIwT9eUzsTWiaFm/Irrd09OGx+nBvBSRAaILLEVaImFo51wKRXjrNw8UYrGWgC xQh02gjTFnqQ3bpA1Rxp5zxfio1BFFF2OpI1uB5ygcLO6NynHTQnPz6CXQFec3eZ p4xJ20HTAdaedtAhH8+ReQZsqNdTgNBwae+YPd5pXKehTjTbqVtGLLNLj03QUa8v p4L2nUSBJ76dlGHt1YauSpYmgxWyeveo+S3O7UxCt/6MA7gxHduLusEWGZZa6POw MVRpeVcQz+r+4Q== X-ME-Sender: X-Sasl-enc: GiZUGNL5wkFKP/DRS6nrEvYs1LIFNux9utcEyymv208U 1505500284 Received: from april.local (c-73-13-66-39.hsd1.pa.comcast.net [73.13.66.39]) by mail.messagingengine.com (Postfix) with ESMTPA id D39F27E125; Fri, 15 Sep 2017 14:31:23 -0400 (EDT) Subject: Re: BUG #14813: pg_get_serial_sequence does not return seqence name for IDENTITY columns From: Peter Eisentraut To: Alvaro Herrera , Tom Lane References: <20170913132503.jtwdcomwnteldjvt@alvherre.pgsql> <5ede3d20-b641-1cc9-120c-12bf0d8e6d07@2ndquadrant.com> Cc: "David G. Johnston" , zam6ak@gmail.com, "pgsql-bugs@postgresql.org" Organization: 2ndQuadrant Message-ID: Date: Fri, 15 Sep 2017 14:31:23 -0400 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <5ede3d20-b641-1cc9-120c-12bf0d8e6d07@2ndquadrant.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit 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 On 9/14/17 17:15, Peter Eisentraut wrote: > On 9/13/17 09:25, Alvaro Herrera wrote: >> Tom Lane wrote: >>> "David G. Johnston" writes: >> >>>> ​I suspect this is an opportunity for documentation enhancement as opposed >>>> to a bug. >>> >>> The reason appears to be that the dependency setup for a sequence created >>> to support IDENTITY is randomly different from that for a serial sequence. >>> I'm not sure this is a good thing. >> >> It would be bad to break queries all over the internet that assume that >> sequences for columns can be found using pg_get_serial_sequence, so I >> agree this should be fixed. > > Proposed patch attached. committed -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs