~ubuntu-branches/ubuntu/utopic/postgresql-9.1/utopic

« back to all changes in this revision

Viewing changes to src/backend/storage/lmgr/lmgr.c

  • Committer: Package Import Robot
  • Author(s): Christoph Berg, Martin Pitt, Christoph Berg
  • Date: 2013-02-05 14:15:33 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20130205141533-vkoy7oaxb0wehjv6
[ Martin Pitt ]
* Add autopkgtest, moved from postgresql-common.
* debian/rules: Only build the error codes and the plpython subtree for the
  "python3" flavor, to cut down build time.
* Add missing docbook build dependency. (Closes: #697618)

[ Christoph Berg ]
* New upstream version.
  + Prevent execution of enum_recv from SQL
    The function was misdeclared, allowing a simple SQL command to crash the
    server.  In principle an attacker might be able to use it to examine the
    contents of server memory.  Our thanks to Sumit Soni (via Secunia SVCRP)
    for reporting this issue. (CVE-2013-0255)

Show diffs side-by-side

added added

removed removed

Lines of Context:
232
232
}
233
233
 
234
234
/*
 
235
 *              LockHasWaitersRelation
 
236
 *
 
237
 * This is a functiion to check if someone else is waiting on a
 
238
 * lock, we are currently holding.
 
239
 */
 
240
bool
 
241
LockHasWaitersRelation(Relation relation, LOCKMODE lockmode)
 
242
{
 
243
        LOCKTAG         tag;
 
244
 
 
245
        SET_LOCKTAG_RELATION(tag,
 
246
                                                 relation->rd_lockInfo.lockRelId.dbId,
 
247
                                                 relation->rd_lockInfo.lockRelId.relId);
 
248
 
 
249
        return LockHasWaiters(&tag, lockmode, false);
 
250
}
 
251
 
 
252
/*
235
253
 *              LockRelationIdForSession
236
254
 *
237
255
 * This routine grabs a session-level lock on the target relation.      The