Re: Locking for function creation

From: Richard Huxton <dev(at)archonet(dot)com>
To: Mark Morgan Lloyd <markMLl(dot)pgsql-general(at)telemetry(dot)co(dot)uk>
Cc: pgsql-general(at)PostgreSQL(dot)org
Subject: Re: Locking for function creation
Date: 2006-12-04 10:41:16
Message-ID: 4573FB4C.3050507@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Mark Morgan Lloyd wrote:
> If there's a risk that multiple clients will try to execute a 'create or replace
> function' simultaneously, what's the recommended practice for putting it in a
> transaction and/or locking it? If a lock's incolved what should this be applied
> to- the table that the function is most likely to be involved with, an arbitrary
> table, or a dummy table specifically reserved for this purpose?

What problem are you trying to prevent here? Do you want a particular
version of the function to be available for a certain amount of time?

--
Richard Huxton
Archonet Ltd

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Richard Huxton 2006-12-04 10:42:36 Re: Storing files in postgres db
Previous Message Richard Huxton 2006-12-04 10:39:55 Re: trouble inserting into new partitions of partitioned