Re: unsubscribe

Lists: pgsql-generalpgsql-hackers
From: Martin Kutschker <Martin(dot)Kutschker(at)blackbox(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: list server problems?
Date: 2003-01-28 08:38:32
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Hi!

I am getting mails from this list <pgsql-general(at)postgresql(dot)org> although - AFAIR :-) - I do not have subscribed.

Masi


From: "Gizmo" <gizmo(at)thegremlins(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: Re: list server problems?
Date: 2003-01-28 08:40:48
Message-ID: 006601c2c6a8$f53b3a20$6d01a8c0@video
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Same here......

> Hi!
>
> I am getting mails from this list <pgsql-general(at)postgresql(dot)org>
although - AFAIR :-) - I do not have subscribed.
>
> Masi
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
>


From: gianpaolo racca <gianpaolo(at)preciso(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 08:45:35
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Tuesday 28 January 2003 09:38, you wrote:
> I am getting mails from this list <pgsql-general(at)postgresql(dot)org> although -
> AFAIR :-) - I do not have subscribed.

me too...

--
Il male non cresce mai così bene come quando ha
un ideale davanti a sè (Karl Kraus)
-----------------------------------------------------------------
gianpaolo racca
gianpaolo(at)preciso(dot)net
http://www.preciso.net


From: Marius Žalinauskas <mariusz(at)delfi(dot)lt>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 08:50:48
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

2003 m. Sausio 28 d., Antradienis 10:38:
> Hi!
>
> I am getting mails from this list <pgsql-general(at)postgresql(dot)org> although -
> AFAIR :-) - I do not have subscribed.

And you are not alone ;-)

--
Marius Žalinauskas


From: Daryl Tester <Daryl(dot)Tester(at)iocane(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 09:16:55
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

I subscribed once or twice, over 6 months ago, but never received
any mail from the list (until now). Maybe someone's fixed what
was broken?

Gizmo wrote:
>
> Same here......
>
> > Hi!
> >
> > I am getting mails from this list <pgsql-general(at)postgresql(dot)org>
> although - AFAIR :-) - I do not have subscribed.
> >
> > Masi

--
Regards,
Daryl Tester, Software Wrangler and Bit Herder, IOCANE Pty. Ltd.

"Um ... those are IP addresses the quarterback guy yells out, right?"
"No, A.J. ... they're wild guesses at your I.Q." -- User Friendly


From: Travis Bauer <trbauer(at)indiana(dot)edu>
To: Gizmo <gizmo(at)thegremlins(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 10:13:55
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Same here. Looks like someone mass subscribed us.
Gizmo (gizmo(at)thegremlins(dot)net) wrote:

> Same here......
>
>
> > Hi!
> >
> > I am getting mails from this list <pgsql-general(at)postgresql(dot)org>
> although - AFAIR :-) - I do not have subscribed.
> >
> > Masi
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> > message can get through to the mailing list cleanly
> >
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html


From: "Shridhar Daithankar" <shridhar_daithankar(at)persistent(dot)co(dot)in>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 10:30:31
Message-ID: 3E36A91F.25299.2AF3F8@localhost
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On 28 Jan 2003 at 5:13, Travis Bauer wrote:

> Same here. Looks like someone mass subscribed us.

Or mass initialized the general list with already known pg guys..;-)

Regards,
Shridhar

-----------------------------------------------------------
Shridhar Daithankar
LIMS CPE Team Member, PSPL.
mailto:shridhar_daithankar(at)persistent(dot)co(dot)in
Phone:- +91-20-5678900 Extn.270
Fax :- +91-20-5678901
-----------------------------------------------------------


From: Gordan Bobic <gordan(at)bobich(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 11:32:57
Message-ID: Pine.LNX.4.44.0301281131380.30155-100000@sevenofnine.shatteredsilicon.net
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Tue, 28 Jan 2003, Shridhar Daithankar wrote:

> On 28 Jan 2003 at 5:13, Travis Bauer wrote:
>
> > Same here. Looks like someone mass subscribed us.
>
> Or mass initialized the general list with already known pg guys..;-)

Are the efforts in progress to unsubscribe those of us who shouldn't be
subscribed?

Regards.

Gordan


From: Ron <theotiwii(at)earthlink(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 13:19:55
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Daryl Tester wrote:

> I subscribed once or twice, over 6 months ago

A fine time for a "ME TOO!" I subscribed lonnnnnggg ago, wrote the list
manager OVER and OVER about not receiving list messages...NEVER a
response...

I switched to MySQL... :-/

-Ron


From: "Damjan Pipan" <damjan(dot)pipan(at)siol(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: problems with dropped columns
Date: 2003-01-28 13:36:25
Message-ID: 014801c2c6d2$40caf5b0$c400a8c0@valhala
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Hi!

I have following problem:
I have created a table with some fields, then I dropped last field (integer)
and added
one extra field (integer). Then I have created a function which returns
record of table
type. I have selected a record from table and returned it, but the values in
last
field are wrong (missing). It looks like that it takes the dropped field
instead of the last field.

Damjan

CREATE OR REPLACE FUNCTION damjan_test111(integer) RETURNS public.fk_test AS
'
DECLARE
rec fk_test%ROWTYPE;
siteid ALIAS FOR $1;
BEGIN
FOR rec IN SELECT * FROM public.fk_test WHERE
i = siteid LOOP
RETURN rec;
END LOOP;
END;
' LANGUAGE 'plpgsql';


From: William WAISSE <wwaisse(at)neofutur(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 14:07:19
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> > I subscribed once or twice, over 6 months ago
the same for me.
Subscribed posted and unsubscribed long ago too.

I have not subscribed again .

Should I unsubscribe again myself ?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+No6X33a3jGkLTgcRAqnSAJsEPr3jyz3unPs6QQg/Niw2xbs5wQCgjbH2
gyzWAAc93l5k6UEGkbixPQ4=
=oA5P
-----END PGP SIGNATURE-----


From: Tony Grant <tony(at)tgds(dot)net>
To: postgres list <pgsql-general(at)postgresql(dot)org>
Subject: Re: list server problems?
Date: 2003-01-28 15:46:36
Message-ID: 1043768796.1613.96.camel@localhost
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

IT'S FIXED!!!!!!!!!!!!!!!!!

Now that was a shock...

Tony Grant

--
www.tgds.net Library management software toolkit,
redhat linux on Sony Vaio C1XD,
Dreamweaver MX with Tomcat and PostgreSQL


From: Tomaz Borstnar <tomaz(dot)borstnar(at)over(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 16:33:49
Message-ID: 5.2.0.9.0.20030128173116.0370bab0@localhost
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

At 05:19 28.1.2003 -0800, Ron wrote the following message:
>A fine time for a "ME TOO!" I subscribed lonnnnnggg ago, wrote the list
>manager OVER and OVER about not receiving list messages...
I had problems only with general lists, other lists were working fine. I
used newsgroup during this time and Elen's summaries.

>NEVER a
>response...
Well, all these people have other work to do as well. We should respect that.

>I switched to MySQL... :-/
Just because of that? Pity. Pgsql is very nice database which needs some
quality time from its users to perform even better.

Tomaz


From: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
To: Daryl Tester <Daryl(dot)Tester(at)iocane(dot)com(dot)au>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 18:03:33
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers


I shut everything down last night and rebuilt the subscriber database for
pgsql-general (it was corrupted) ... apologies to those that may have
unsubscribed at some point, and are now re-subscribed ... the rebuild
process doesn't seem to know how to deal with that too well yet ...

On Tue, 28 Jan 2003, Daryl Tester wrote:

> I subscribed once or twice, over 6 months ago, but never received
> any mail from the list (until now). Maybe someone's fixed what
> was broken?
>
> Gizmo wrote:
> >
> > Same here......
> >
> > > Hi!
> > >
> > > I am getting mails from this list <pgsql-general(at)postgresql(dot)org>
> > although - AFAIR :-) - I do not have subscribed.
> > >
> > > Masi
>
>
>
> --
> Regards,
> Daryl Tester, Software Wrangler and Bit Herder, IOCANE Pty. Ltd.
>
> "Um ... those are IP addresses the quarterback guy yells out, right?"
> "No, A.J. ... they're wild guesses at your I.Q." -- User Friendly
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo(at)postgresql(dot)org
>


From: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
To: Gordan Bobic <gordan(at)bobich(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 18:04:52
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Tue, 28 Jan 2003, Gordan Bobic wrote:

> On Tue, 28 Jan 2003, Shridhar Daithankar wrote:
>
> > On 28 Jan 2003 at 5:13, Travis Bauer wrote:
> >
> > > Same here. Looks like someone mass subscribed us.
> >
> > Or mass initialized the general list with already known pg guys..;-)
>
> Are the efforts in progress to unsubscribe those of us who shouldn't be
> subscribed?

No, as we don't know who shouldn't be subscribeed ... plesae send in an
unsubscribe request to get back off the list ...


From: "Zac Hillier" <zac(at)affectors(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: unsubscribe
Date: 2003-01-28 19:29:04
Message-ID: 002501c2c703$e8550330$647ba8c0@ws
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Please unsubscribe me.


From: Gordan Bobic <gordan(at)bobich(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-28 22:12:15
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Sorry, but one of the replies I got implies that I need a password to
unsubscribe. I don't have it any more. Can you please remove me off the list?

Thanks.

Gordan


From: "Kris Allsop" <krisallsop(at)btinternet(dot)com>
To: <pgsql-general(at)postgresql(dot)org>
Subject: unsubscribe
Date: 2003-01-28 23:56:09
Message-ID: 007801c2c728$d594c030$70488351@graveland
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Unsubscribe me thanx


From: Shanmugasundaram Doraisamy <shan(at)ceedees(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: list server problems?
Date: 2003-01-29 11:21:26
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Dear Administrator/Moderator,
I had subscribed to this group and I need only the digest version.
But I am getting every post to this group as an individual mail. I
understand there was some problem with this earlier. Has it been
solved? What should I do to get only the digest version. Thanking you,

Yours sincerely,

D.Shanmugasundaram.

On Tue, 2003-01-28 at 14:15, gianpaolo racca wrote:
> On Tuesday 28 January 2003 09:38, you wrote:
> > I am getting mails from this list <pgsql-general(at)postgresql(dot)org> although -
> > AFAIR :-) - I do not have subscribed.
>
> me too...
>
> --
> Il male non cresce mai così bene come quando ha
> un ideale davanti a sè (Karl Kraus)
> -----------------------------------------------------------------
> gianpaolo racca
> gianpaolo(at)preciso(dot)net
> http://www.preciso.net
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org


From: Francisco J Reyes <fran(at)natserv(dot)net>
To: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: list server problems?
Date: 2003-01-29 15:20:07
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Tue, 28 Jan 2003, Marc G. Fournier wrote:

> No, as we don't know who shouldn't be subscribeed ... plesae send in an
> unsubscribe request to get back off the list ...

Was/is there a simmilar problem with ther performance list? Several months
back when the announcement was sent about the performance list I tried
several times to subscribe, but never got a notification.


From: "Marc G(dot) Fournier" <scrappy(at)hub(dot)org>
To: Francisco J Reyes <fran(at)natserv(dot)net>
Cc: pgsql General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: list server problems?
Date: 2003-01-29 17:24:44
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

On Wed, 29 Jan 2003, Francisco J Reyes wrote:

> On Tue, 28 Jan 2003, Marc G. Fournier wrote:
>
> > No, as we don't know who shouldn't be subscribeed ... plesae send in an
> > unsubscribe request to get back off the list ...
>
>
> Was/is there a simmilar problem with ther performance list? Several months
> back when the announcement was sent about the performance list I tried
> several times to subscribe, but never got a notification.

There might have been, but right now a verification of all databases comes
up with no error (please note, this is not a PgSQL database backend,
Majordomo2 uses a DB3 backend) ... you migth try again and see, as I know
the list itself is fairely active ...


From: "Gordon A(dot) Campbell" <gordie(at)columbia(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: unsubscribe
Date: 2003-01-29 18:01:53
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

unsubscribe


From: steve <steve(at)zeropps(dot)uklinux(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: unsubscribe
Date: 2003-01-30 01:24:55
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Please unsubscribe me too.

--
%HAV-A-NICEDAY email mailto:steve(at)zeropps(dot)uklinux(dot)net
Steve web http://www.zeropps.uklinux.net/
or http://start.at/zero-pps
1:24am up 38 days, 1:44, 1 user, load average: 1.00, 1.05, 1.18


From: "Terri Lerose" <Terri(dot)Lerose(at)att(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Subject: unsubscribe
Date: 2003-02-02 23:52:21
Message-ID: 001501c2cb16$21484a60$0e325d0c@TSLerose
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

unsubscribe

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)


From: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
To: "Damjan Pipan" <damjan(dot)pipan(at)siol(dot)net>, <pgsql-general(at)postgresql(dot)org>, "Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] problems with dropped columns
Date: 2003-03-06 02:21:36
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

I want to fix this bug, however I can't see how the example below is
failing... (Obeys dropped columns) I'm not up with my SRFs, so would
someone be able to post a concise SQL script that demonstrates the failure?

I can see in the code that it should be failing, but I need a demonstrated
example...

Chris

----- Original Message -----
From: "Damjan Pipan" <damjan(dot)pipan(at)siol(dot)net>
To: <pgsql-general(at)postgresql(dot)org>
Sent: Tuesday, January 28, 2003 9:36 PM
Subject: [GENERAL] problems with dropped columns

> Hi!
>
> I have following problem:
> I have created a table with some fields, then I dropped last field
(integer)
> and added
> one extra field (integer). Then I have created a function which returns
> record of table
> type. I have selected a record from table and returned it, but the values
in
> last
> field are wrong (missing). It looks like that it takes the dropped field
> instead of the last field.
>
> Damjan
>
> CREATE OR REPLACE FUNCTION damjan_test111(integer) RETURNS public.fk_test
AS
> '
> DECLARE
> rec fk_test%ROWTYPE;
> siteid ALIAS FOR $1;
> BEGIN
> FOR rec IN SELECT * FROM public.fk_test WHERE
> i = siteid LOOP
> RETURN rec;
> END LOOP;
> END;
> ' LANGUAGE 'plpgsql';
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>


From: Joe Conway <mail(at)joeconway(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Damjan Pipan <damjan(dot)pipan(at)siol(dot)net>, pgsql-general(at)postgresql(dot)org, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] problems with dropped columns
Date: 2003-03-06 05:20:21
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Christopher Kings-Lynne wrote:
> I want to fix this bug, however I can't see how the example below is
> failing... (Obeys dropped columns) I'm not up with my SRFs, so would
> someone be able to post a concise SQL script that demonstrates the failure?
>
> I can see in the code that it should be failing, but I need a demonstrated
> example...

Here is a self contained example using cvs tip:

CREATE TABLE fk_test (f1 int, f2 int);
insert into fk_test(f1, f2) values(1, 21);
insert into fk_test(f1, f2) values(2, 22);

ALTER TABLE fk_test DROP COLUMN f2;
ALTER TABLE fk_test ADD COLUMN f3 int;

insert into fk_test(f1, f3) values(3, 33);
insert into fk_test(f1, f3) values(4, 34);

regression=# select * from fk_test ;
f1 | f3
----+----
1 |
2 |
3 | 33
4 | 34
(4 rows)

CREATE OR REPLACE FUNCTION test()
RETURNS SETOF fk_test AS '
DECLARE
rec fk_test%ROWTYPE;
BEGIN
FOR rec IN SELECT * FROM fk_test LOOP
RETURN NEXT rec;
END LOOP;
RETURN;
END;
' LANGUAGE 'plpgsql';

regression=# select * from test();
f1 | f3
----+----
1 |
2 |
3 |
4 |
(4 rows)

Joe


From: Joe Conway <mail(at)joeconway(dot)com>
To: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
Cc: Damjan Pipan <damjan(dot)pipan(at)siol(dot)net>, pgsql-general(at)postgresql(dot)org, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] problems with dropped columns
Date: 2003-03-06 05:32:01
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Christopher Kings-Lynne wrote:
> I want to fix this bug, however I can't see how the example below is
> failing... (Obeys dropped columns) I'm not up with my SRFs, so would
> someone be able to post a concise SQL script that demonstrates the failure?
>
> I can see in the code that it should be failing, but I need a demonstrated
> example...

Taking it a bit further...

CREATE TABLE fk_test (f1 int, f2 int);
insert into fk_test(f1, f2) values(1, 21);
insert into fk_test(f1, f2) values(2, 22);

ALTER TABLE fk_test DROP COLUMN f2;
ALTER TABLE fk_test ADD COLUMN f3 int;

insert into fk_test(f1, f3) values(3, 33);
insert into fk_test(f1, f3) values(4, 34);

CREATE OR REPLACE FUNCTION test()
RETURNS SETOF fk_test AS '
DECLARE
rec fk_test%ROWTYPE;
BEGIN
FOR rec IN SELECT * FROM fk_test LOOP
RETURN NEXT rec;
END LOOP;
RETURN;
END;
' LANGUAGE 'plpgsql';

regression=# select * from test();
f1 | f3
----+----
1 |
2 |
3 |
4 |
(4 rows)

regression=# ALTER TABLE fk_test DROP COLUMN f3;
ALTER TABLE
regression=# select * from test();
f1
----
1
2
3
4
(4 rows)

regression=# ALTER TABLE fk_test ADD COLUMN f3 int;
ALTER TABLE
regression=# select * from test();
WARNING: Error occurred while executing PL/pgSQL function test
WARNING: line 5 at return next
ERROR: Wrong record type supplied in RETURN NEXT

CREATE OR REPLACE FUNCTION test()
RETURNS SETOF fk_test AS '
DECLARE
rec fk_test%ROWTYPE;
BEGIN
FOR rec IN SELECT * FROM fk_test LOOP
RETURN NEXT rec;
END LOOP;
RETURN;
END;
' LANGUAGE 'plpgsql';

regression=# select * from test();
f1 | f3
----+----
1 |
2 |
3 |
4 |
(4 rows)

Joe


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Damjan Pipan <damjan(dot)pipan(at)siol(dot)net>, pgsql-general(at)postgresql(dot)org, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] problems with dropped columns
Date: 2003-03-06 06:18:41
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Joe Conway <mail(at)joeconway(dot)com> writes:
> Taking it a bit further...

There are (at least) two distinct problems involved here. One is
getting plpgsql to deal correctly with rowtypes that include dropped
columns. The other is getting it to react when someone alters a table
whose rowtype is relied on by already-compiled functions.

The former problem is just a small matter of programming in plpgsql;
I'm not sure what the best way to do it is, but it's clearly just
plpgsql's issue. The latter problem calls for a ton of infrastructure
that we haven't got :-(

regards, tom lane


From: Kevin Brown <kevin(at)sysexperts(dot)com>
To: pgsql-general(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [HACKERS] problems with dropped columns
Date: 2003-03-06 21:52:47
Message-ID: 20030306215247.GU1833@filer
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)com> writes:
> > Taking it a bit further...
>
> There are (at least) two distinct problems involved here. One is
> getting plpgsql to deal correctly with rowtypes that include dropped
> columns. The other is getting it to react when someone alters a table
> whose rowtype is relied on by already-compiled functions.
>
> The former problem is just a small matter of programming in plpgsql;
> I'm not sure what the best way to do it is, but it's clearly just
> plpgsql's issue. The latter problem calls for a ton of infrastructure
> that we haven't got :-(

Hmm, well...

- Keeping timestamps of when the table definition was last changed and
when the function was last compiled, and then having the language
interpreter check the two before executing the function (and
recompile it when the function is out of date) would solve the
problem (and require relatively little additional infrastructure),
but I would expect the performance hit to be too high to be worth
it.

- Alternatively, the language compiler could record a dependency
between the function and the table (assuming this isn't done
already), and be told to recompile the function when the table
definition changes. This gets real messy when you're talking about
doing this in a transaction, unless the compilation itself is
something that can be rolled back (it wouldn't surprise me in the
least if the compiled definition is stored in a table already and
thus can be rolled back).

- Alternatively, recompilation could be made a manual thing,
e.g. ALTER FUNCTION blah RECOMPILE. It would still be a win for
this to be transaction-capable.

--
Kevin Brown kevin(at)sysexperts(dot)com


From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Joe Conway <mail(at)joeconway(dot)com>, Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>, Damjan Pipan <damjan(dot)pipan(at)siol(dot)net>, pgsql-general(at)postgresql(dot)org, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [HACKERS] problems with dropped columns
Date: 2003-03-07 17:40:33
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers


Is there any TODO's here?

---------------------------------------------------------------------------

Tom Lane wrote:
> Joe Conway <mail(at)joeconway(dot)com> writes:
> > Taking it a bit further...
>
> There are (at least) two distinct problems involved here. One is
> getting plpgsql to deal correctly with rowtypes that include dropped
> columns. The other is getting it to react when someone alters a table
> whose rowtype is relied on by already-compiled functions.
>
> The former problem is just a small matter of programming in plpgsql;
> I'm not sure what the best way to do it is, but it's clearly just
> plpgsql's issue. The latter problem calls for a ton of infrastructure
> that we haven't got :-(
>
> regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073


From: Christopher Kings-Lynne <chriskl(at)familyhealth(dot)com(dot)au>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Joe Conway <mail(at)joeconway(dot)com>, Damjan Pipan <damjan(dot)pipan(at)siol(dot)net>, <pgsql-general(at)postgresql(dot)org>, Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [GENERAL] problems with dropped columns
Date: 2003-03-08 04:09:01
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-general pgsql-hackers

> > There are (at least) two distinct problems involved here. One is
> > getting plpgsql to deal correctly with rowtypes that include dropped
> > columns. The other is getting it to react when someone alters a table
> > whose rowtype is relied on by already-compiled functions.

I'm working on this one...I don't know all the dependencies of things off
the top of my head, so it's a little bit painstakign...

Chris