Re: PHP SQL

From: Shaun Clements <ShaunC(at)relyant(dot)co(dot)za>
To: 'Jeff Davis' <jdavis-pgsql(at)empires(dot)org>
Cc: PgSQL General List <pgsql-general(at)postgresql(dot)org>
Subject: Re: PHP SQL
Date: 2005-03-23 06:26:03
Message-ID: 100F78F2B203444BB161BBA7077FF6131CD968@srldbexc003.relyant.co.za
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for your response.
It is as you mentioned, within the same database.
I will get working on a stored procedure this morning.

Thanks for your response.

Kind Regards,
Shaun Clements

-----Original Message-----
From: Jeff Davis [mailto:jdavis-pgsql(at)empires(dot)org]
Sent: 22 March 2005 10:48 PM
To: Shaun Clements
Cc: PgSQL General List
Subject: Re: [GENERAL] PHP SQL

> pg_fetch_row
> pg_fetch_assoc
> pg_fetch_object
> pg_fetch_result
> pg_fetch_array
>
> Are there performance differences, which are noticeable?

I doubt you'll see much real difference. Your real bottleneck will be
I/O.

You might be able to save something by using COPY out and then back in.
If it's a lot of data I would definately try that, because it's got a
lot more chance of helping you. Or you could use a server side function
rather than doing the work in the client. contrib/dblink may be able to
help you a lot.

However, your question made it sound like the tables were in the same DB
already and just in different schemas? If that's the case, you can just
select one table into another and avoid all that unecessary overhead.

Regards,
Jeff Davis

Browse pgsql-general by date

  From Date Subject
Next Message Sim Zacks 2005-03-23 06:49:31 Re: multi line text data/query ?bug?
Previous Message Michael Fuhr 2005-03-23 06:20:50 Re: inherited table and rules