Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeJtH-0006V2-C9 for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 12:10:55 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eeJtG-0003YP-Kx for pgsql-general@arkaria.postgresql.org; Wed, 24 Jan 2018 12:10:54 +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 1eeJtG-0003YB-DH for pgsql-general@lists.postgresql.org; Wed, 24 Jan 2018 12:10:54 +0000 Received: from mta1.ilger.com ([77.81.238.29]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eeJtE-00069V-Iy for pgsql-general@postgresql.org; Wed, 24 Jan 2018 12:10:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mta1.ilger.com (Postfix) with ESMTP id 947D4407C9; Wed, 24 Jan 2018 13:10:51 +0100 (CET) X-Virus-Scanned: amavisd-new at mta1.ilger.com Received: from mta1.ilger.com ([127.0.0.1]) by localhost (mta1.ilger.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id Bq4QjHKhLYKP; Wed, 24 Jan 2018 13:10:51 +0100 (CET) Received: from [172.18.4.138] (37-186-245-150.ip271.fastwebnet.it [37.186.245.150]) by mta1.ilger.com (Postfix) with ESMTPSA id 6F962410FF; Wed, 24 Jan 2018 13:10:51 +0100 (CET) Subject: Re: PostgreSQL 9.6: view based on sequence To: Vincenzo Romano References: Cc: PostgreSQL General From: Enrico Pirozzi Message-ID: <2a951f66-b131-5150-2176-e85865595add@nbsgroup.it> Date: Wed, 24 Jan 2018 13:10:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk it's just to know why postgresql does not return a warning. Il 24/01/2018 13:06, Vincenzo Romano ha scritto: > I haven't any v9 any more in my deployments. Sorry. > > What is the objective of that view? > If it's to hide the nextval() function, then the solution can be > similar to mine. > If it's to access the sequence metainfo, then maybe it'd be better to > explore the pg_catalog schema. -- Enrico Pirozzi e.pirozzi@nbsgroup.it