update table sequence - Mailing list pgsql-sql

From e.ellenkamp@copernicus-it.nl (Egbert Ellenkamp)
Subject update table sequence
Date
Msg-id 3ab203b3.242887724@newzilla.xs4all.nl
Whole thread Raw
Responses Re: update table sequence  ("Ross J. Reedstrom" <reedstrm@rice.edu>)
Re: update table sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
All,

Is there a way I can set the sequence of a table equal to highest row
ID?
For example something like:
select setval('mytable_myrowid_seq',select max(myrowid) from mytable);

I read the documentation but could not find anything relevant.

Thanks in advance,

Egbert.


pgsql-sql by date:

Previous
From: "Mourad EL HADJ MIMOUNE"
Date:
Subject: SQL3 support
Next
From: Tom Lane
Date:
Subject: Re: List Concatination