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

Re: [HACKERS] lock table

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: jose(at)sferacarta(dot)com (Jose' Soares)
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] lock table
Date: 1998-10-28 16:20:43
Message-ID: 199810281620.LAA17588@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
> Hi all,
> 
> I would to report that LOCK TABLE doesn't work outside
> transactions but PostgreSQL accepts this statement outside
> transactions whithout saying nothing...
> 
> prova=> begin work;
> BEGIN
> prova=> select * from films where code = 'BL102';
> code |title            |did| date_prod|kind      |len
> -----+-----------------+---+----------+----------+-----
> BL102|The African Queen|101|1951-08-11|Drama     |01:43
> (1 row)
> 
> prova=> commit work;
> END
> prova=> lock table films;
> DELETE 0
> 
> Jose'

Good point. I should fix that someday.

-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist(at)candle(dot)pha(dot)pa(dot)us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

In response to

  • lock table at 1998-10-28 13:49:21 from Jose' Soares

pgsql-hackers by date

Next:From: Jan WieckDate: 1998-10-28 16:31:16
Subject: Re: [HACKERS] Open 6.4 items
Previous:From: Bruce MomjianDate: 1998-10-28 16:19:47
Subject: Re: [HACKERS] Sigh, build is broken again

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