Re: USMARC and postgresql?

От
Tom Lane
Тема
Re: USMARC and postgresql?
Дата
в 10:36:34
Msg-id
11994.957882866@sss.pgh.pa.us
Ответ на
Re: USMARC and postgresql? (Andrew Sullivan)
Список
Дерево обсуждения
SSL "Robert B. Easter" <reaster@comptechnews.com>
USMARC and postgresql? kb2qzv@poczta.onet.pl
Re: USMARC and postgresql? Andrew Sullivan <sullivana@bpl.on.ca>
Re: USMARC and postgresql? Tom Lane <tgl@sss.pgh.pa.us>
Re: USMARC and postgresql? Andrew Sullivan <sullivana@bpl.on.ca>
Re: USMARC and postgresql? "Brett W. McCoy" <bmccoy@chapelperilous.net>
Re: USMARC and postgresql? Andrew Sullivan <sullivana@bpl.on.ca>
Re: USMARC and postgresql? "Ross J. Reedstrom" <reedstrm@wallace.ece.rice.edu>
Andrew Sullivan  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
В списке pgsql-general по дате отправления
От: Brett W. McCoy
Дата:
Сообщение: Re: Postgres Tool Question
От: Bruce Momjian
Дата:
Поиск
Список
Период
Сортировка
Искать
FAQ