pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: pgsql-general@lists.postgresql.org
Subject: Re: Table partitioning with sequence field in postgresql12
Date: Thu, 18 Jun 2020 16:57:42 +1000
Message-ID: <87wo44zwrd.fsf@gmail.com> (raw)
In-Reply-To: <CAFruNdfSD_i12pQWNwOY-ixM4DgWEzOHR_oHhQ5EbUmm3apUFA@mail.gmail.com>
References: <CAFruNdfSD_i12pQWNwOY-ixM4DgWEzOHR_oHhQ5EbUmm3apUFA@mail.gmail.com>


Srinivasa T N <seenutn@gmail.com> writes:

> Hi,
>    Partitioning of a table with sequence id as one of its fields is
> supported in postgresql12?
>
> Regards,
> Seenu.

A sequence is really just an 'atomic' number generator, you get the next
value, which is guaranteed to be larger than the last 'nextval' (up
until maxvalue). It is unaware of the use i.e. whether it will be used
in a insert or what table that insert is against. So I'm not sure what
your concern with a partitioned table is? Can you elaborate?

-- 
Tim Cross





view thread (7+ messages)  latest in thread

Message-ID: <87wo44zwrd.fsf@gmail.com>
Permalink:  ../87wo44zwrd.fsf@gmail.com/
Also on:    postgresql.org/message-id/87wo44zwrd.fsf@gmail.com

 · 

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: theophilusx@gmail.com
  Subject: Re: Table partitioning with sequence field in postgresql12
  In-Reply-To: <87wo44zwrd.fsf@gmail.com>
  References: <CAFruNdfSD_i12pQWNwOY-ixM4DgWEzOHR_oHhQ5EbUmm3apUFA@mail.gmail.com> <87wo44zwrd.fsf@gmail.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