各フレームワークのpostgresqlのlastInsertIdの取り方
PDO::lastInsertId
http://php.net/manual/ja/pdo.lastinsertid.php
cakephp
https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Datasource/Database/Postgres.php#L284
return $this->_connection->lastInsertId($seq);
fuelphp
https://github.com/fuel/core/blob/1.6/develop/classes/database/pdo/connection.php#L213
$this->_connection->lastInsertId(),
laravel
https://github.com/laravel/laravel/blob/master/laravel/database/query/grammars/postgres.php#L17
return $this->insert($query, $values)." RETURNING $column";
zf2
return $this->resource->lastInsertId($name);
lithium
https://github.com/UnionOfRAD/lithium/blob/master/data/source/database/adapter/PostgreSql.php#L376
return $this->resource->lastInsertId($name);