Custom Insert function

From: "Brian C(dot) Doyle" <bcdoyle(at)mindspring(dot)com>
To: PostgreSQL <pgsql-general(at)postgresql(dot)org>
Subject: Custom Insert function
Date: 2001-09-21 02:25:57
Message-ID: 5.0.2.1.0.20010920221714.00abc0e0@pop.jbbent.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message lt 2001-09-21 02:30:56 phantom record, is it a bug?
Previous Message R Talbot 2001-09-21 02:21:54 Problem: Failed Make on Linux Pgres v. 7.1.2