Re: weird problem with PG 8.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: weird problem with PG 8.1
Дата
Msg-id 11043.1238514646@sss.pgh.pa.us
обсуждение исходный текст
Ответ на weird problem with PG 8.1  (Marcin Krol <mrkafk@gmail.com>)
Список pgsql-general
Marcin Krol <mrkafk@gmail.com> writes:
> When I issue:
> SELECT * FROM virtualization;

> I get all the fields:

> reservations=# SELECT * FROM virtualization;
>   id | Virtualization  |  color
> ----+-----------------+---------

> But when I try to order by column Virtualization:
> reservations=# SELECT * FROM virtualization ORDER BY Virtualization;

You need

    SELECT * FROM virtualization ORDER BY "Virtualization";

What you typed is a request to sort by the composite row value,
which isn't supported in any pre-8.4 release.

You might care to go re-read the manual about identifier quoting
and case folding.

            regards, tom lane

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

Предыдущее
От: Scott Marlowe
Дата:
Сообщение: Re: Space for pg_dump
Следующее
От: "David E. Wheeler"
Дата:
Сообщение: Re: [HACKERS] string_to_array with empty input