Re: alter table tablename add column - breaks pl/pgsql function returns tablename - Mailing list pgsql-hackers

From Tom Lane
Subject Re: alter table tablename add column - breaks pl/pgsql function returns tablename
Date
Msg-id 25105.1352150623@sss.pgh.pa.us
Whole thread Raw
In response to Re: alter table tablename add column - breaks pl/pgsql function returns tablename  (Palle Girgensohn <girgen@pingpong.net>)
Responses Re: alter table tablename add column - breaks pl/pgsql function returns tablename
List pgsql-hackers
Palle Girgensohn <girgen@pingpong.net> writes:
> Please note that this problem does not go away by disconnecting and reconnecting, and other sessions get the error
immediately,so the claim that it is bound to a session is false. 
 

Huh?  The test case you provided certainly doesn't exhibit any such
behavior.  I get

regression=# SELECT * FROM test_func();
ERROR:  wrong record type supplied in RETURN NEXT
CONTEXT:  PL/pgSQL function test_func() line 6 at RETURN NEXT
regression=# \c -
You are now connected to database "regression" as user "postgres".
regression=# SELECT * FROM test_func();id | foo 
----+----- 1 |    
(1 row)
        regards, tom lane



pgsql-hackers by date:

Previous
From: Jeff Janes
Date:
Subject: Re: Pg_upgrade speed for many tables
Next
From: Bruce Momjian
Date:
Subject: Re: to_char timezone