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

why does plperl cache functions using just a bool for is_trigger

From: Jan Urbański <wulczer(at)wulczer(dot)org>
To: Postgres - Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: why does plperl cache functions using just a bool for is_trigger
Date: 2010-10-24 21:40:25
Message-ID: 4CC4A7C9.4050400@wulczer.org (view raw or flat)
Thread:
Lists: pgsql-hackers
I see that plperl uses a triple of (function oid, is_trigger flag, user
id) as a hash key for caching compiled functions. OTOH pltcl and plpgsql
both use (oid, trigger relation oid, user id). Is there any reason why
just using a bool as plperl does would be wrong?

I'm trying to write a validator function for plpython and I'm not sure
if I should copy plperl's or plpgsql's logic.

Cheers,
Jan

Responses

pgsql-hackers by date

Next:From: Andrew DunstanDate: 2010-10-24 22:16:53
Subject: Re: WIP: extensible enums
Previous:From: Greg SmithDate: 2010-10-24 21:39:12
Subject: Re: ask for review of MERGE

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