Wednesday, February 25. 2009re: axonflux on building and scaling a startupTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
Great post. One note: I arrived to the blog trough a feed agregator (Planet PG is I recall correctly), but the given URL was incorrect: http://www.xzilla.net/blog/2009/Feb/387.html
You might want to look into this issue (why is the aggregator serving the incorrect URL).
Hello Sir,
I had a question regarding your GREAT presentation on Pl/PHP on http://www.slideshare.net/xzilla/intro-to-plphp-oscon2007-presentation. Now, on page 62, you have given an example that contains the function pg_connect function to connect to a remote Postgresql database. Now my question is: I know pg_connect works from php. But when I am trying to run it within a function or trigger, postgresql says it does not recognize pg_connect function. Now my question, does pg_connect is part of pl/php or not. I appreciate your comments as an expert. I am eagerly waiting to hear from u.
A little off-topic for this post, but yes, you can use pg_connect from inside a function, but you have to make sure of two things; first that you are using plphu (the trusted version shouldn't be able to access an external function like that). second you need to make sure that the static php build you are using is compiled with pgsql support. Don't confuse the static build with any dynamic builds, you can have support in one but not the other. For more help, please email the pl/php mailing list.
|
QuicksearchHi! I'm Robert Treat, COO of OmniTI, perhaps the best internet technology consulting company on the planet. A veteran open source developer and advocate, I have been recognized as a major contributor to the PostgreSQL project, and can often be found speaking on open source, databases, and large scale web operations. Recent MusingsMonitoring for "E-Tailers"
Wednesday Cloudy With A Chance Of Scale Wednesday Checkpoints, Buffers, and Graphs Wednesday You were saying? about Checkpoints, Buffers, and Graphs Sun, 27.11.2011 15:42 And the slides are up at http: //www.2ndquadrant.com/en/talks / about Index pruning techniques Thu, 24.11.2011 11:42 You probably want array_agg in stead of array_accum. That sa id, if you don't understand ho w to fix the query, it's [...] Blog Administration |