Search Postgresql Archives

Re: Select max(id) causes AccessExclusiveLock?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Edson,

* Edson Richter (edsonrichter@xxxxxxxxxxx) wrote:
> The programmer added a
> 
> LOCK TABLE MyTableName
> 
> just before issuing the select max(id) from MyTableName.
> 
> I do suspect this is the case, right?

Yup, that'll do it.

http://www.postgresql.org/docs/9.3/static/sql-lock.html

	Thanks,

		Stephen

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux