Skip site navigation (1) Skip section navigation (2)

Re: Functions with COPY

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stephen Frost <sfrost(at)snowman(dot)net>
Cc: Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Functions with COPY
Date: 2003-11-28 17:47:49
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackers
Stephen Frost <sfrost(at)snowman(dot)net> writes:
> No, I'm interested, as I discussed in my message[1], in the ability to
> use functions in a copy statement to allow me to specify the conversion
> from text to the appropriate data type.

COPY is not intended to be that flexible; it's intended to be fast.
You can do any amount of processing you want in an INSERT statement,

INSERT INTO mytable VALUES (mydatefunc('2001/01/03'), ... );

			regards, tom lane

In response to


pgsql-hackers by date

Next:From: Marc G. FournierDate: 2003-11-28 17:59:08
Subject: Re: about explain analyze
Previous:From: Tom LaneDate: 2003-11-28 17:31:08
Subject: Re: -fpic vs. -fPIC

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group