[postgis-users] How to implement a GUID

Mark Cave-Ayland mark.cave-ayland at ilande.co.uk
Tue Jul 24 15:39:05 PDT 2007

On Tue, 2007-07-24 at 17:55 +0200, Milo van der Linden wrote:
> Hello!
> Mark, for me, this is the WINNER SOLUTION!  This is the correct way to
> do it in my particular situation; respect!
> Only one more hurdle left: I am doing the insert from php with
> variables. what would be the best way to go; store this in a function
> whit the right variables in place?
> Or is there a way to control the BEGIN; COMMIT; loop from within php?
> I will look in the php and postGress wiki's and documentation. When I
> find the answer myself, I will post it.

Sure. You can execute BEGIN and COMMIT SQL commands in the same way you
would execute a SELECT or INSERT from PHP, i.e. passing a string into
pg_query() or using PDO.

Kind regards,


ILande - Open Source Consultancy

More information about the postgis-users mailing list