Re: Regression Tests (opr) Sanity - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Regression Tests (opr) Sanity
Date
Msg-id 15178.1290706454@sss.pgh.pa.us
Whole thread Raw
In response to Regression Tests (opr) Sanity  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Responses Re: Regression Tests (opr) Sanity
List pgsql-hackers
Dimitri Fontaine <dimitri@2ndQuadrant.fr> writes:
> The pg_execute_from_file() function is designed to work with either a
> filename as its sole argument, or the filename and a VARIADIC text list
> of arguments containing placeholder names and values. It works fine with
> two entries in pg_proc using the same backend function, and it looks
> like the following from a psql shell:

Just make two pg_proc entries that are pointing at two C functions.
The C functions can call a common subroutine after extracting their
arguments.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: SQL/MED - core functionality
Next
From: Maciek Sakrejda
Date:
Subject: Re: [JDBC] JDBC and Binary protocol error, for some statements