| От | Leif B. Kristensen |
|---|---|
| Тема | Re: Asssociative Arrays: Best practices / snippets? |
| Дата | |
| Msg-id | 200905231222.24055.leif@solumslekt.org обсуждение |
| Ответ на | Asssociative Arrays: Best practices / snippets? (Stefan Keller <sfkeller@gmail.com>) |
| Список | pgsql-general |
On Saturday 23. May 2009, Stefan Keller wrote: >I have a use case where the I want to put an unforeseable number of >key/value pairs in a column. >Now, PostgreSQL has arrays as first class types. >Are there any best practices and snippets (preferrably in plpgsql) for >handling key/value pairs? >-- S. The «best practice» here is probably rethinking your design. Storing an «unforeseeable number of key/value pairs in a column» is a blatant violation of good database design principles. Rodrigo posted this link a few hours ago: http://joecelkothesqlapprentice.blogspot.com/2006/04/using-one-table-vs-many.html -- Leif Biberg Kristensen | Registered Linux User #338009 Me And My Database: http://solumslekt.org/blog/
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера