Custom Insert function - Mailing list pgsql-general

From Brian C. Doyle
Subject Custom Insert function
Date
Msg-id 5.0.2.1.0.20010920221714.00abc0e0@pop.jbbent.com
Whole thread Raw
Responses Re: Custom Insert function
List pgsql-general
Hello all,

Is it possible to create a function that would look like
this_function('file.csv');

and make it run
COPY this_table FROM '/this/location/file.csv' USING DELIMITERS ',';

Thus eliminating alot of repeated work each time???

if so what would I put on the returns


pgsql-general by date:

Previous
From: Keary Suska
Date:
Subject: Re: Global constants
Next
From: "Karen Ellrick"
Date:
Subject: Re: Second byte of multibyte characters causing trouble