Re: [NOVICE] Loading current_user and current_timestamp using COPY - Mailing list pgsql-sql

From Tom Lane
Subject Re: [NOVICE] Loading current_user and current_timestamp using COPY
Date
Msg-id 9479.1002777066@sss.pgh.pa.us
Whole thread Raw
In response to Re: [NOVICE] Loading current_user and current_timestamp using COPY  ("Josh Berkus" <josh@agliodbs.com>)
List 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 by date:

Previous
From: "Josh Berkus"
Date:
Subject: Re: [NOVICE] Loading current_user and current_timestamp using COPY
Next
From: Patrik Kudo
Date:
Subject: indexing and LIKE