Re: Multiple Columns Keys - Good or Bad idea? - Mailing list pgsql-novice

From Rob Brown-Bayliss
Subject Re: Multiple Columns Keys - Good or Bad idea?
Date
Msg-id 992403805.27623.0.camel@ZOOstation.cc
Whole thread Raw
In response to Re: Multiple Columns Keys - Good or Bad idea?  (Ryan Ho <ryanho@cyberronins.com>)
List pgsql-novice
> I'd go for the first method. If you need to refer to the integrated table
> often (e.g. as foreign key in other tables), it may be a good idea to give it
> a new sequence. So the integrated table will have location, the sequence
> number at the remote site, and a unique local sequence number.

Thanks folks,

I have decided to mix and match, I have changed the primary key to a
text field and created a function that merges the location ID and the
sequence like '46-153453'

So I can still get the data from specific sites if needed and have only
one key...


--

  Rob Brown-Bayliss
 ---======o======---
  www.ZOOstation.cc

pgsql-novice by date:

Previous
From: Ryan Ho
Date:
Subject: Optimizing complex queries
Next
From: Michael
Date:
Subject: configuring question?