Re: logical column ordering

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: logical column ordering
Дата
Msg-id 5487838E.7030805@agliodbs.com
обсуждение исходный текст
Ответ на logical column ordering  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Ответы Re: logical column ordering  (Andrew Dunstan <andrew@dunslane.net>)
Re: logical column ordering  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 12/09/2014 09:41 AM, Alvaro Herrera wrote:
> The first thing where this matters is tuple descriptor expansion in
> parse analysis; at this stage, things such as "*" (in "select *") are
> turned into a target list, which must be sorted according to attlognum.
> To achieve this I added a new routine to tupledescs,

The two other major cases are:

INSERT INTO table SELECT|VALUES ...

COPY table FROM|TO ...

... although copy should just be a subclass of SELECT.

Question on COPY, though: there's reasons why people would want COPY to
dump in either physical or logical order.  If you're doing COPY to
create CSV files for output, then you want the columns in logical order.If you're doing COPY for pg_dump, then you want
themin physical order
 
for faster dump/reload.  So we're almost certainly going to need to have
an option for COPY.


-- 
Josh Berkus
PostgreSQL Experts Inc.
http://pgexperts.com



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

Предыдущее
От: Jim Nasby
Дата:
Сообщение: Re: operator does not exist: character varying[] <> character[]
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: Proposal : REINDEX SCHEMA