pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Robert Haas <robertmhaas@gmail.com>
Cc: Ramanujam <innomotive@gmail.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6213: COPY does not work as expected in a plpgsql function
Date: Mon, 26 Sep 2011 10:33:03 -0400
Message-ID: <5875.1317047583@sss.pgh.pa.us> (raw)
In-Reply-To: <CA+TgmoaWiexhnopd3q7xTKOgjE7yCz2fEiM_sD36+UWzgD4fbg@mail.gmail.com>
References: <201109190255.p8J2tAX0011023@wwwmaster.postgresql.org>
	<CA+TgmoY7=pAGxqWLJq9HnTXTFyKJrP+RVJysaFaFWsBzv=AYAQ@mail.gmail.com>
	<CAE6Z5SLkwJcvJbocpb_ntAqDTz4a3TJxw0Ga9gHuEwNyYCqm2Q@mail.gmail.com>
	<CA+TgmoaWiexhnopd3q7xTKOgjE7yCz2fEiM_sD36+UWzgD4fbg@mail.gmail.com>

Robert Haas <robertmhaas@gmail.com> writes:
> It would actually be nice if worked even without that, but I'm not
> sure what would be involved in making that happen.

I've been too busy to look at this in detail, but I imagine the issue is
failure to pass parameters down from the ProcessUtility call to COPY
into the parsing/execution of the sub-SELECT.  It might be relatively
straightforward to fix, or then again it might not.  The parsing end of
it could quite likely be harder than the execution end.  We've
surmounted similar issues in places like EXPLAIN, though.

			regards, tom lane



view thread (5+ messages)

Message-ID: <5875.1317047583@sss.pgh.pa.us>
Permalink:  ../5875.1317047583@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/5875.1317047583@sss.pgh.pa.us

 · 

reply

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, robertmhaas@gmail.com, innomotive@gmail.com
  Subject: Re: BUG #6213: COPY does not work as expected in a plpgsql function
  In-Reply-To: <5875.1317047583@sss.pgh.pa.us>
  References: <201109190255.p8J2tAX0011023@wwwmaster.postgresql.org> <CA+TgmoY7=pAGxqWLJq9HnTXTFyKJrP+RVJysaFaFWsBzv=AYAQ@mail.gmail.com> <CAE6Z5SLkwJcvJbocpb_ntAqDTz4a3TJxw0Ga9gHuEwNyYCqm2Q@mail.gmail.com> <CA+TgmoaWiexhnopd3q7xTKOgjE7yCz2fEiM_sD36+UWzgD4fbg@mail.gmail.com> <5875.1317047583@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