From: Tom Lane <tgl@sss.pgh.pa.us>
To: Bill MacArthur <webmaster@dhs-club.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: TYPE of TEMP table does not seem to get set
Date: Mon, 16 Apr 2012 16:11:29 -0400
Message-ID: <4379.1334607089@sss.pgh.pa.us> (raw)
In-Reply-To: <4F8C771A.2040509@dhs-club.com>
References: <4F8C771A.2040509@dhs-club.com>
Bill MacArthur <webmaster@dhs-club.com> writes:
> I have a view "configurations.tp_transactions" which is a blend of many tables using INNER and LEFT JOINs. I want to populate a temp table from which I can obtain the data and programmatically write queries to operate on that data using certain PLPGSQL functions in a uniform fashion. I have several functions which all expect a single argument of the type "configurations.tp_transactions".
I think you would need to create the temp table as a child of the main
table for this to work. As you're doing it, the rowtype of the temp
table is independent of the main (and the fact that they happen to have
the same columns is NOT good enough to make it acceptable to a function
declared to take the main table's rowtype).
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, webmaster@dhs-club.com
Subject: Re: TYPE of TEMP table does not seem to get set
In-Reply-To: <4379.1334607089@sss.pgh.pa.us>
References: <4F8C771A.2040509@dhs-club.com> <4379.1334607089@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox