From: Tomasz Myrta <jasiek@klaster.net>
To: PGSQL-SQL <pgsql-sql@postgresql.org>
Subject: independent sequence for each month
Date: Thu, 14 Aug 2003 08:18:46 +0200
Message-ID: <3F3B29C6.6050101@klaster.net> (raw)
Hi
I have to generate unique numbers starting from 1 every month. I can't
reset sequence on last day of month, because sometimes I have to insert
some future or past values. I thought I can create independent sequence
for each month, but it doesn't sound elegant.
Regards,
Tomasz Myrta
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: jasiek@klaster.net
Subject: Re: independent sequence for each month
In-Reply-To: <3F3B29C6.6050101@klaster.net>
* 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