pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Enrico Pirozzi <e.pirozzi@nbsgroup.it>
To: pgsql-general@postgresql.org
Subject: PostgreSQL 9.6: view based on sequence
Date: Wed, 24 Jan 2018 12:52:12 +0100
Message-ID: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it> (raw)

Hi, I was doing a test on a 9.6 and I've seen a strange thing

if I run

create sequence test_sequence;
create view v_test_sequence as select * from test_sequence;

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.

Does anyone help me?

Enrico



-- 
Enrico Pirozzi
e.pirozzi@nbsgroup.it





view thread (12+ messages)  latest in thread

Message-ID: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it>
Permalink:  ../e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it/
Also on:    postgresql.org/message-id/e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it

 · 

reply

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: e.pirozzi@nbsgroup.it
  Subject: Re: PostgreSQL 9.6: view based on sequence
  In-Reply-To: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it>
  References: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it>

* 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