I was rather surprised to find this code still present:
* We set up the lockRelId in case anything tries to lock the dummy
* relation. Note that this is fairly bogus since relNode may be
* different from the relation's OID. It shouldn't really matter though,
* since we are presumably running by ourselves and can't have any lock
* conflicts ...
rel->rd_lockInfo.lockRelId.dbId = rnode.dbNode;
rel->rd_lockInfo.lockRelId.relId = rnode.relNode;
Seems quite unsafe in HS.
regards, tom lane
pgsql-hackers by date
|Next:||From: Tom Lane||Date: 2010-02-09 19:06:36|
|Subject: Why doesn't smgr_redo truncate the VM fork too?|
|Previous:||From: Pavel Stehule||Date: 2010-02-09 18:08:49|
|Subject: Re: bugfix - VIP: variadic function ignore strict flag|