Skip site navigation (1) Skip section navigation (2)

Re: [COMMITTERS] pgsql: Fix breakage from earlier plperl fix.

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Alex Hunsaker <badalex(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [COMMITTERS] pgsql: Fix breakage from earlier plperl fix.
Date: 2012-01-06 19:13:41
Message-ID: 4F0747E5.2090502@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-committerspgsql-hackers

On 01/06/2012 02:02 PM, Alex Hunsaker wrote:
>> 3. The above is in any case almost certainly insufficient, because in my
>> tests a typeglob didn't trigger SvREADONLY(), but did cause a crash.
> Hrm the glob I was testing was *STDIN. It failed to fail in my test
> program because I was not testing *STDIN directly but instead had
> @test = (*STDIN); Ugh. Playing with it a bit more it seems only
> *STDIN, *STDERR and *STDOUT have problems. For example this seems to
> work fine for me:
> do LANGUAGE plperlu $$ open(my $fh, '>', '/tmp/t.tmp'); elog(NOTICE, $fh) $$;
>
>

$fh isn't a typeglob here, AIUI. But it's definitely not just *STDIN and 
friends. Try:

do LANGUAGE plperlu $$ $foo=1; elog(NOTICE, *foo) $$;


cheers

andrew

In response to

pgsql-hackers by date

Next:From: David FetterDate: 2012-01-06 19:28:28
Subject: Re: WIP(!) Double Writes
Previous:From: Alex HunsakerDate: 2012-01-06 19:02:49
Subject: Re: [COMMITTERS] pgsql: Fix breakage from earlier plperl fix.

pgsql-committers by date

Next:From: Robert HaasDate: 2012-01-06 19:33:15
Subject: pgsql: Make the number of CLOG buffers adaptive,based on shared_buffer
Previous:From: Alex HunsakerDate: 2012-01-06 19:02:49
Subject: Re: [COMMITTERS] pgsql: Fix breakage from earlier plperl fix.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group