A transaction block starts with a SQL statement BEGIN and if the transaction was valid ends with COMMIT or END.
?php $database = pg_connect( "","", "","", "jacarta"); pg_exec($database, "begin"); $oid = pg_locreate($database); echo "$oid\n"; $handle = pg_loopen($database, $oid, "w"); echo "$handle\n"; pg_lowrite($handle, "gaga"); pg_loclose($handle); pg_exec($database, "commit") pg_exec($database, "end")?