Re: Running Totals and other stuff....

From: Mike Nolan <nolan(at)gw(dot)tssi(dot)com>
To: alan(dot)graham(at)infonetsystems(dot)com(dot)au (Alan Graham)
Cc: Jerry(dot)Levan(at)EKU(dot)EDU (Levan Jerry), pgsql-general(at)postgresql(dot)org
Subject: Re: Running Totals and other stuff....
Date: 2004-06-01 20:03:51
Message-ID: 200406012003.i51K3pZA001960@gw.tssi.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message zhicheng wang 2004-06-01 20:05:19 Re: after using pg_resetxlog, db lost
Previous Message Tom Lane 2004-06-01 19:23:01 Re: How to identify which column in a table is the primary key