Обсуждение: LOCK command

Поиск
Список
Период
Сортировка

LOCK command

От
Bruce Momjian
Дата:
I have implemented LOCK tablename for 6.3.  It just does a DELETE table
WHERE false.

--
Bruce Momjian
maillist@candle.pha.pa.us

Re: [HACKERS] LOCK command

От
"Vadim B. Mikheev"
Дата:
Bruce Momjian wrote:
>
> I have implemented LOCK tablename for 6.3.  It just does a DELETE table
> WHERE false.

Unfortunately, this will be useful inside BEGIN/END only :(

Vadim

Re: [HACKERS] LOCK command

От
Bruce Momjian
Дата:
>
> Bruce Momjian wrote:
> >
> > I have implemented LOCK tablename for 6.3.  It just does a DELETE table
> > WHERE false.
>
> Unfortunately, this will be useful inside BEGIN/END only :(
>
> Vadim
>
>

Well, if they issue a LOCK outside a transaction, it doesn't do
anything.  To be usefull outside a transaction, we would have to have a
LOCK/UNLOCK command, and I am not at that point yet.

--
Bruce Momjian
maillist@candle.pha.pa.us