pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PGresult
2+ messages / 2 participants
[nested] [flat]

* PGresult
@ 2000-06-18 05:52 Vladimir V. Zolotych <gsmith@eurocom.od.ua>
  2000-06-19 16:15 ` Re: PGresult Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 1 reply; 2+ messages in thread

From: Vladimir V. Zolotych @ 2000-06-18 05:52 UTC (permalink / raw)
  To: pgsql-admin

    Hello All,
Is it possible to have one PGresul inside another PGresult?
E.g. having some small PGresult while another (big) PGresult
still active?

PGresult* res1 = PQexec (,,,)
for (...............) {
  // do some processing with res1.
  PGresult* res2 = PQexec (...);
  // Process res2.
  PQclear (res2);
  // return back to res1
}

Thanks!


--
Vladimir Zolotych                         gsmith@eurocom.od.ua

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: PGresult
  2000-06-18 05:52 PGresult Vladimir V. Zolotych <gsmith@eurocom.od.ua>
@ 2000-06-19 16:15 ` Peter Eisentraut <peter_e@gmx.net>
  0 siblings, 0 replies; 2+ messages in thread

From: Peter Eisentraut @ 2000-06-19 16:15 UTC (permalink / raw)
  To: Vladimir V. Zolotych <gsmith@eurocom.od.ua>; +Cc: pgsql-admin

Vladimir V. Zolotych writes:

> Is it possible to have one PGresul inside another PGresult?
> E.g. having some small PGresult while another (big) PGresult
> still active?
> 
> PGresult* res1 = PQexec (,,,)
> for (...............) {
>   // do some processing with res1.
>   PGresult* res2 = PQexec (...);
>   // Process res2.
>   PQclear (res2);
>   // return back to res1
> }

res1 and res2 are completely independent, you can use both as long and
often as you want. Not sure how you want to "include" one in the other
though.


-- 
Peter Eisentraut                  Sernanders väg 10:115
peter_e@gmx.net                   75262 Uppsala
http://yi.org/peter-e/            Sweden





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2000-06-19 16:15 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-18 05:52 PGresult Vladimir V. Zolotych <gsmith@eurocom.od.ua>
2000-06-19 16:15 ` Peter Eisentraut <peter_e@gmx.net>

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