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 Fetter | Date: 2012-01-06 19:28:28 |
| Subject: Re: WIP(!) Double Writes |
| Previous: | From: Alex Hunsaker | Date: 2012-01-06 19:02:49 |
| Subject: Re: [COMMITTERS] pgsql: Fix breakage from earlier plperl fix. |
pgsql-committers by date
| Next: | From: Robert Haas | Date: 2012-01-06 19:33:15 |
| Subject: pgsql: Make the number of CLOG buffers adaptive,based on shared_buffer |
| Previous: | From: Alex Hunsaker | Date: 2012-01-06 19:02:49 |
| Subject: Re: [COMMITTERS] pgsql: Fix breakage from earlier plperl fix. |