Dynamic SQL, Return Query Execute with Join

From: "Mark Watson" <mark(dot)watson(at)jurisconcept(dot)ca>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Dynamic SQL, Return Query Execute with Join
Date: 2010-02-05 13:41:13
Message-ID: F83BB77205FD4D329979E87426C8989F@Gateway
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all,
I wish to pass a query text (containing joins) and separate parameters to a
plpgsql function that will return a result set (more than one row) using
RETURN QUERY EEXECUTE, but am having trouble defining the result set because
of the join. Am I limited to the result set being restricted to one table
definition and will need to use a view instead? Sorry if my question is too
concise - I can provide sample code if necessary.

Postgres 8.4.2 on Windows.

Mark Watson

Browse pgsql-general by date

  From Date Subject
Next Message Sam Mason 2010-02-05 14:45:34 Re: How to escape apostrophes when apostrophes already used to escape something else
Previous Message Grzegorz Jaśkiewicz 2010-02-05 13:39:21 Re: How to escape apostrophes when apostrophes already used to escape something else