Re: Performance of INSERT into temporary tables using psqlODBC driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Sergei,
>> The data to be inserted into temporary tables is obtained from one or
>> more 
>> queries run earlier and the data is available as a vector of strings. 
>You can not use "insert into temp_table select /*anything you wish*/"
statement? 
>Or even insert .. select ... returning if you need receive data to
application? 
Unfortunately, the existing functionality in our application is in such a
manner that the data returned from one or more SELECT queries is processed
by server business logic and filtered, and the filtered data is then
inserted into the temporary tables. This is the reason I could not use
insert into ... select ... or insert ... select ... returning statements.

>> If I need to use COPY FROM command, then the application would need to
>> create a 
>> file with the data to be inserted 
>You can not using "copy from stdin" statement?
Thank you for suggesting the usage of "copy from stdin". I am not sure how
to pass the values to be inserted as input for "COPY FROM STDIN" statement
from my application based on psqlODBC driver. Can someone point me to an
example or suggest how to pass data from a client application to "COPY FROM
STDIN" statement?
Thanks.



--
Sent from: http://www.postgresql-archive.org/PostgreSQL-performance-f2050081.html




[Postgresql General]     [Postgresql PHP]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Yosemite]

  Powered by Linux