Re: [NOVICE] Loading current_user and current_timestamp using COPY

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [NOVICE] Loading current_user and current_timestamp using COPY
Дата
Msg-id 9479.1002777066@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [NOVICE] Loading current_user and current_timestamp using COPY  ("Josh Berkus" <josh@agliodbs.com>)
Список pgsql-sql
>> Although...if COPY can handle the now() function, it should be able 
>> to handle the current_user/current_timestamp without too much overhead.

Eh?  COPY most assuredly does not handle the now() function, nor any
other function call.

It will accept 'now' --- no parens --- as an input for datetime
datatypes, but that's because those datatypes do, not because COPY
is doing anything special.

IMHO the entire point of COPY is to load bulk data as quickly as
possible ... if you want any convenience processing done for you,
you should be using INSERT not COPY.
        regards, tom lane


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

Предыдущее
От: "Josh Berkus"
Дата:
Сообщение: Re: [NOVICE] Loading current_user and current_timestamp using COPY
Следующее
От: Patrik Kudo
Дата:
Сообщение: indexing and LIKE