locks and variable substitution - Mailing list pgsql-sql

From
Subject locks and variable substitution
Date
Msg-id 20030725184912.HHCX20032.out005.verizon.net@localhost
Whole thread Raw
Responses Re: locks and variable substitution  (Eric Clark <eclark@zerohp.com>)
List pgsql-sql
Is it possible to do variable substitution with explicit locks in plpgsql? 
Something along the lines of

...

declare
big_string alias for $1;
excl_table text;

begin
--assuming big_string starts with something like table=table1!
excl_table := substr(big_string,7,(position(''!'' in big_string)-7));

lock table excl_table in exclusive mode;

...

Thanks very much.
g.





pgsql-sql by date:

Previous
From: Dmitry Tkach
Date:
Subject: Re: [GENERAL] Query analyse
Next
From: Elielson Fontanezi
Date:
Subject: ERROR: DefineIndex: index function must be marked iscachable