From: Enrico Pirozzi <e.pirozzi@nbsgroup.it>
Cc: PostgreSQL General <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL 9.6: view based on sequence
Date: Wed, 24 Jan 2018 13:05:06 +0100
Message-ID: <a74c0eaf-784e-1bf2-e4cd-69eb5fa38f92@nbsgroup.it> (raw)
In-Reply-To: <CAHjZ2x5RvdSOvZrM9JA_0z6ihvbTRbKwO63aQ3gkwecvpthcjg@mail.gmail.com>
References: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it>
<CAHjZ2x5RvdSOvZrM9JA_0z6ihvbTRbKwO63aQ3gkwecvpthcjg@mail.gmail.com>
tmp1=# create sequence x;
> CREATE SEQUENCE
> Time: 69,857 ms
> tmp1=# select * from x;
> last_value | log_cnt | is_called
> ------------+---------+-----------
> 1 | 0 | f
> (1 row)
>
> Maybe what you want to do is
>
> create view v_test_sequence as select nextval( 'test_sequence' );
>
> Ciao.
Yes but this happens on a 10.x version on a 9.6 version things are
differents
Ciao
Enrico
--
Enrico Pirozzi
e.pirozzi@nbsgroup.it
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: <a74c0eaf-784e-1bf2-e4cd-69eb5fa38f92@nbsgroup.it>
References: <e88d5c69-3cdf-8221-3588-938b2eff5196@nbsgroup.it> <CAHjZ2x5RvdSOvZrM9JA_0z6ihvbTRbKwO63aQ3gkwecvpthcjg@mail.gmail.com> <a74c0eaf-784e-1bf2-e4cd-69eb5fa38f92@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