Unix Technical Forum

Re: [Plperlng-devel] Data Persists Past Scope

This is a discussion on Re: [Plperlng-devel] Data Persists Past Scope within the pgsql Hackers forums, part of the PostgreSQL category; --> This is almost ceratinly a perl problem that has nothing to do with postgres. Please construct a small test ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-12-2008, 05:20 AM
Andrew Dunstan
 
Posts: n/a
Default Re: [Plperlng-devel] Data Persists Past Scope


This is almost ceratinly a perl problem that has nothing to do with postgres.

Please construct a small test case - I at least don't have time to spend
wading through huge gobs of code.

Note: if the variable is referred to by a live subroutine it will still be
alive. See man perlref and search for "closure" - it might help you.

cheers

andrew



David Fetter wrote:
> Folks,
>
> While testing DBI-Link, I've noticed something very odd. In the
> trigger code, I have subroutines with 'my' variables in them, which I
> thought meant that as soon as the subroutine returned, the variables
> went away.
>
> They are not going away
>
> Please find attached some sample output along with DBI-Link. The
> database I'm connecting to is MySQL's Sakila, but the same happens in
> Oracle, so I don't think (this time it's a MySQL problem.
>
> If I quit the session or reload the functions, the ghost variables go
> away, but I can't ask people to do that between queries.
>
> Help!
>




---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:16 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com