Re: [SQL] [PHP] PL/pgSQL and PHP 5

2006-08-09 Thread John DeSoi
Glad you found the problem. On Aug 9, 2006, at 11:42 PM, PostgreSQL Admin wrote: $connection->execute("SELECT insert_staff_b('$staff [insert_firstname]'::varchar)"); $connection->execute("SELECT insert_staff_b('".$staff ['insert_firstname']."'::varchar)"); If you are creating SQL functions y

Re: [SQL] PL/pgSQL and PHP 5 - thanks

2006-08-09 Thread PostgreSQL Admin
Thanks, The search path was the problem. Sometimes it's the simple things. Big thanks, J ---(end of broadcast)--- TIP 2: Don't 'kill -9' the postmaster

Re: [SQL] PL/pgSQL and PHP 5

2006-08-09 Thread PostgreSQL Admin
Tom Lane wrote: PostgreSQL Admin <[EMAIL PROTECTED]> writes: CREATE OR REPLACE FUNCTION insert_staff_b (insert_firstname varchar) RETURNS VOID AS ... Still I get this error: Warning: pg_query(): Query failed: ERROR: function insert_staff_b(character varying) does not exist Sure lo

Re: [SQL] [PHP] PL/pgSQL and PHP 5

2006-08-09 Thread PostgreSQL Admin
Thanks for the catch. I've tried: $connection->execute("SELECT insert_staff_b('$staff[insert_firstname]'::varchar)"); $connection->execute("SELECT insert_staff_b('".$staff['insert_firstname']."'::varchar)"); None work... I'm scratching my head on this one. Thanks, J

Re: [SQL] PL/pgSQL and PHP 5

2006-08-09 Thread Tom Lane
PostgreSQL Admin <[EMAIL PROTECTED]> writes: > CREATE OR REPLACE FUNCTION insert_staff_b > (insert_firstname varchar) > RETURNS VOID AS > ... > Still I get this error: > Warning: pg_query(): Query failed: ERROR: function > insert_staff_b(character varying) does not exist Sure looks like it ou

Re: [SQL] [PHP] PL/pgSQL and PHP 5

2006-08-09 Thread John DeSoi
On Aug 9, 2006, at 10:36 PM, PostgreSQL Admin wrote: select insert_staff_b('$_POST['firstname']::varchar) Still I get this error: Warning: pg_query(): Query failed: ERROR: function insert_staff_b (character varying) does not exist HINT: No function matches the given name and argument types

[SQL] PL/pgSQL and PHP 5

2006-08-09 Thread PostgreSQL Admin
I'm having this problem inserting data from my form using PL/pgSQL. Here is the simplified version of my table and function (this example does not work, also ): CREATE TABLE theirry.sample ( staff_id serial PRIMARY KEY NOT NULL, firstname varchar(100), lastname varchar(150), usern

Re: [SQL] Query response time

2006-08-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-08-08 13:25:47 +0100: > I am using PostgresSQL 7.4 and having some serious performance issues. > I am using tables that only contain approx 2GB of data. > The install was performed by yum onto a RAID server using Centos. I am > sure there is something fundamentally wron