pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: padusuma <venkata.adusumalli@gmail.com>
To: pgsql-performance@postgresql.org
Subject: Re: Performance of INSERT into temporary tables using psqlODBC driver
Date: Sun, 9 Sep 2018 02:39:23 -0700 (MST)
Message-ID: <1536485963039-0.post@n3.nabble.com> (raw)
In-Reply-To: <32611151536479127@iva1-16f33c6a446b.qloud-c.yandex.net>
References: <1536339842382-0.post@n3.nabble.com>
	<8736uk6eh5.fsf@gmail.com>
	<1536385261054-0.post@n3.nabble.com>
	<32611151536479127@iva1-16f33c6a446b.qloud-c.yandex.net>

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




view thread (12+ messages)  latest in thread

Message-ID: <1536485963039-0.post@n3.nabble.com>
Permalink:  ../1536485963039-0.post@n3.nabble.com/
Also on:    postgresql.org/message-id/1536485963039-0.post@n3.nabble.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: venkata.adusumalli@gmail.com
  Subject: Re: Performance of INSERT into temporary tables using psqlODBC driver
  In-Reply-To: <1536485963039-0.post@n3.nabble.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox