| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Andrew Sullivan <sullivana(at)bpl(dot)on(dot)ca> |
| Cc: | user Postgresql ML <pgsql-general(at)postgresql(dot)org> |
| Subject: | Re: USMARC and postgresql? |
| Date: | 2000-05-09 14:34:26 |
| Message-ID: | 11994.957882866@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Andrew Sullivan <sullivana(at)bpl(dot)on(dot)ca> writes:
> This is way hard. The reason is simple: MARC allows all of the following:
> 1. Multiple instances of the same field.
> 2. Variable length of field.
> 3. Unpredictable numbers of completed fields.
I would think you could handle this by splitting an entry into multiple
records linked by a common ID value. In barest bones:
itemid int,
fieldtype int,
fieldvalue text
and you do a SELECT ... WHERE itemid = X and fieldtype = Y to retrieve
all the instances of a particular field.
Still, looking around for someone who's already done it seems like a
fine idea ;-)
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2000-05-09 14:46:01 | Steering committee responce to Great Bridge LLC |
| Previous Message | Brett W. McCoy | 2000-05-09 14:26:49 | Re: Postgres Tool Question |