Re: serial columns & loads misfeature? - Mailing list pgsql-general

From Andrew Sullivan
Subject Re: serial columns & loads misfeature?
Date
Msg-id 20020628162654.Q32484@mail.libertyrms.com
Whole thread Raw
In response to Re: serial columns & loads misfeature?  (Gregory Seidman <gss+pg@cs.brown.edu>)
List pgsql-general
On Fri, Jun 28, 2002 at 02:50:46PM -0400, Gregory Seidman wrote:
>
> SELECT setval('seq_name', max(serial_column)) FROM appropriate_table;
>
> Unfortunately, I don't think even pg_dump produces this line, though I
> could be wrong.

You are indeed wrong.  It is produced by pg_dump (well, actually, it
doesn't use the max() function, but the result is the same).

A


--
----
Andrew Sullivan                               87 Mowat Avenue
Liberty RMS                           Toronto, Ontario Canada
<andrew@libertyrms.info>                              M6K 3E3
                                         +1 416 646 3304 x110




pgsql-general by date:

Previous
From: Scott Marlowe
Date:
Subject: Re: [HACKERS] Can't read archives anymore :-(
Next
From: Tom Lane
Date:
Subject: Re: One source of constant annoyance identified