Re: Regression Tests (opr) Sanity

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)fr>
Cc: PostgreSQL Hackers <Pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Regression Tests (opr) Sanity
Date: 2010-11-25 17:34:14
Message-ID: 15178.1290706454@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dimitri Fontaine <dimitri(at)2ndQuadrant(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Maciek Sakrejda 2010-11-25 17:46:30 Re: [JDBC] JDBC and Binary protocol error, for some statements
Previous Message Tom Lane 2010-11-25 17:30:16 Re: SQL/MED - core functionality