From: Andrew G. Hammond <drew@xyzzy.dhs.org>
To: Philip Hallstrom <philip@adhesivemedia.com>
Cc: Kancha . <kancha2np@yahoo.com>
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: [SQL] resetting sequence
Date: Wed, 27 Mar 2002 10:07:00 -0500
Message-ID: <20020327150700.GB7777@xyzzy.dhs.org> (raw)
In-Reply-To: <20020326212937.K37166-100000@teak.adhesivemedia.com>
References: <20020327023039.13665.qmail@web14914.mail.yahoo.com>
<20020326212937.K37166-100000@teak.adhesivemedia.com>
It also looks like you might want to check out the unix cron utility.
From your shell prompt, try
man crontab
On Tue, Mar 26, 2002 at 09:30:10PM -0800, Philip Hallstrom wrote:
> take a look at the SETVAL function... it's something close to:
>
> SELECT SETVAL('sequence_name', 1);
>
> something like that. check the manual.
>
> On Tue, 26 Mar 2002, Kancha . wrote:
>
> > My sequence starts from 1 and after few months it
> > should be reset to 1 again. Can this be automated ??
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Academy Awards®
> > http://movies.yahoo.com/
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 5: Have you checked our extensive FAQ?
> >
> > http://www.postgresql.org/users-lounge/docs/faq.html
> >
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
--
Andrew G. Hammond mailto:drew@xyzzy.dhs.org http://xyzzy.dhs.org/~drew/
56 2A 54 EF 19 C0 3B 43 72 69 5B E3 69 5B A1 1F 613-389-5481
5CD3 62B0 254B DEB1 86E0 8959 093E F70A B457 84B1
"To blow recursion you must first blow recur" -- me
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: drew@xyzzy.dhs.org, philip@adhesivemedia.com, kancha2np@yahoo.com, pgsql-general@postgresql.org
Subject: Re: [SQL] resetting sequence
In-Reply-To: <20020327150700.GB7777@xyzzy.dhs.org>
* 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