Re: Running Totals and other stuff.... - Mailing list pgsql-general

From Mike Nolan
Subject Re: Running Totals and other stuff....
Date
Msg-id 200406012003.i51K3pZA001960@gw.tssi.com
Whole thread Raw
In response to Re: Running Totals and other stuff....  (Alan Graham <alan.graham@infonetsystems.com.au>)
Responses Re: Running Totals and other stuff....
List pgsql-general
> Adding a cheque number primary key would work tho'

Depending on the specifics of the application, check number may not
be a  'unique' field.  Automatic bank checks come to mind, on my
monthy statments they tend to always have the same check number or none
at all.

In this case I'd use a serial column.

The best long term solution, IMHO, would be to change postgres so that
it has a unique system column for each record, like Oracle does.
--
Mike Nolan

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: How to identify which column in a table is the primary key
Next
From: zhicheng wang
Date:
Subject: Re: after using pg_resetxlog, db lost