pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: GRIMOIS Eric <eric.grimois@cpam-cergypontoise.cnamts.fr>
To: pgsql-sql@postgresql.org
Subject: Sequence not updated after a copy ?
Date: Thu, 21 Mar 2002 18:21:50 +0100
Message-ID: <000c01c1d0fc$e36d1f40$3d04a837@PXXXX> (raw)

Hi All

Does 'COPY table FROM...' command update the last_value field of the
sequence(s) related to the table ?
Is a setval( ) function required after completion ? In this case, what's the
best command for doing that ?

Thanks

Eric GRIMOIS
Analyste programmeur
SEI - CPAM du Val d'Oise
01.34.22.24.56




view thread (4+ messages)  latest in thread

Message-ID: <000c01c1d0fc$e36d1f40$3d04a837@PXXXX>
Permalink:  ../000c01c1d0fc$e36d1f40$3d04a837@PXXXX/
Also on:    postgresql.org/message-id/000c01c1d0fc$e36d1f40$3d04a837@PXXXX

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: eric.grimois@cpam-cergypontoise.cnamts.fr
  Subject: Re: Sequence not updated after a copy ?
  In-Reply-To: <000c01c1d0fc$e36d1f40$3d04a837@PXXXX>

* 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