note 48231 added to function.pg-last-oid

From: Date: Thu, 16 Dec 2004 05:20:43 +0000
Subject: note 48231 added to function.pg-last-oid
Groups: php.notes 
Request: Send a blank email to php-notes+get-81843@lists.php.net to get a copy of this message
I do not understand the editors notes in this section. They seem to suggest that you can't safely use nextval to get an identifier from a sequence that will be unique accross all users/sessions. That is categorically false. nextval will pull a number from a sequence and that number is guarunteed to be distinct accross all sessions. To quote the Postgres Docs: "nextval Advance the sequence object to its next value and return that value. This is done atomically: even if multiple sessions execute nextval concurrently, each will safely receive a distinct sequence value." ---- Manual Page -- http://www.php.net/manual/en/function.pg-last-oid.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+48231 Delete -- http://master.php.net/manage/user-notes.php?action=delete+48231&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+48231&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+48231&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+48231&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+48231&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+48231&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+48231&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#81843) next »