Re: Turning column into row

Поиск
Список
Период
Сортировка
От Wm. G. Urquhart
Тема Re: Turning column into row
Дата
Msg-id Pine.LNX.4.44.0205221707110.5109-100000@mailer.wurquhart.co.uk
обсуждение исходный текст
Ответ на Re: Turning column into row  ("Tille, Andreas" <TilleA@rki.de>)
Список pgsql-sql
On Wed, 22 May 2002, Tille, Andreas wrote:

<snip/>
> I see no reason why this should not work - but I even see no real
> advantage to store a bitfield instead of just the concatenated string
> in a temporary table which is removed afterwards anyway.
>
> Thanks for the further hint
>
>              Andreas.
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

For what it's worth the string contat option in MY opinion is a quite a
clumsy solution. The advantage of using the bitfield approach is one of
compactness, elegance and speed.

Operations on integers are inherently faster than operations on strings,
regardless of the language used. I think you should give this option some
more consideration. Having said that, you are the one developing the
application and not me.

:-)
--
Regards,


Wm. G. Urquhart
Custom Software Solutions
http://www.wurquhart.co.uk




В списке pgsql-sql по дате отправления:

Предыдущее
От: Christoph Haller
Дата:
Сообщение: Speeding up SELECT MAX(),... GROUP BY ... ?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Speeding up SELECT MAX(),... GROUP BY ... ?