From: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
To: Enrico Pirozzi <e.pirozzi@nbsgroup.it>
To: pgsql-general@postgresql.org
Subject: Re: PostgreSQL 9.6: view based on sequence
Date: Thu, 25 Jan 2018 12:07:25 -0500
Message-ID: <0bcc6563-cf37-ec1e-feef-53685f13282c@2ndquadrant.com> (raw)
In-Reply-To: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it>
References: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it>
On 1/24/18 06:52, Enrico Pirozzi wrote:
> PostgreSQL creates a view based on the sequence and the strange thing
> is that, among the various fields that are created in the view,
> there is a field named sequence_name with datatype name.
>
> I've seen in the docs
> https://www.postgresql.org/docs/9.6/static/datatype-character.html
> and the datatype name should be reserved only for structures internal of PG.
There is nothing from with user code using the data type "name". It's
probably just not the best choice. But if you create a view over a
system table, then you'll get whatever types the system table uses.
There is nothing from with that.
--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: peter.eisentraut@2ndquadrant.com, e.pirozzi@nbsgroup.it
Subject: Re: PostgreSQL 9.6: view based on sequence
In-Reply-To: <0bcc6563-cf37-ec1e-feef-53685f13282c@2ndquadrant.com>
References: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it> <0bcc6563-cf37-ec1e-feef-53685f13282c@2ndquadrant.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox