pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
libpq
5+ messages / 4 participants
[nested] [flat]

* libpq
@ 2000-04-06 01:04 Teresa Mozejko -  Ricardo Costa <ryccosta@satlink.com>
  2000-04-06 15:15 ` Re: libpq Antonio W. Lagnada <alagnada@lsil.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Teresa Mozejko - Ricardo Costa @ 2000-04-06 01:04 UTC (permalink / raw)
  To: pgsql-sql

Is there an example using libpq or libpq++ which includes table creation and filling as well as queries. I would really appreciate this information, because the examples included in the postgres manual are not complete enough.

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

* Re: libpq
  2000-04-06 01:04 libpq Teresa Mozejko -  Ricardo Costa <ryccosta@satlink.com>
@ 2000-04-06 15:15 ` Antonio W. Lagnada <alagnada@lsil.com>
  0 siblings, 0 replies; 5+ messages in thread

From: Antonio W. Lagnada @ 2000-04-06 15:15 UTC (permalink / raw)
  To: pgsql-sql

I too would like to see an example.  Reading the header files just
didn't cut it for me
> Teresa Mozejko - Ricardo Costa wrote:
> 
> Is there an example using libpq or libpq++ which includes table
> creation and filling as well as queries. I would really appreciate
> this information, because the examples included in the postgres manual
> are not complete enough.
> 

--

Antonio W. Lagnada
Silicon Optimization
http://wwwmm.lsil.com/~alagnada (internal)
(612) 921 8533



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

* libpq
@ 2010-08-10 13:35 Dmitriy Igrishin <dmitigr@gmail.com>
  2010-08-12 14:47 ` libpq Dmitriy Igrishin <dmitigr@gmail.com>
  0 siblings, 1 reply; 5+ messages in thread

From: Dmitriy Igrishin @ 2010-08-10 13:35 UTC (permalink / raw)
  To: pgsql-sql

Hey all,

Is it guaranteed that functions, which accept PGconn* properly
works if PGconn* is NULL (or just 0) and returns in such cases
the same values as for not-NULL PGconn* ?
If so, I think it should be documented ?!

Regards,
Dmitriy

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

* libpq
  2010-08-10 13:35 libpq Dmitriy Igrishin <dmitigr@gmail.com>
@ 2010-08-12 14:47 ` Dmitriy Igrishin <dmitigr@gmail.com>
  2010-08-12 15:04   ` Re: libpq Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 5+ messages in thread

From: Dmitriy Igrishin @ 2010-08-12 14:47 UTC (permalink / raw)
  To: pgsql-hackers@postgresql.org

Hey all,

Is it guaranteed that functions, which accept PGconn* (PGresult*)
properly works if PGconn* (PGresult*) is NULL or is it better to check
on NULL the value of the pointer before calling those functions?

Regards,
Dmitriy

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

* Re: libpq
  2010-08-10 13:35 libpq Dmitriy Igrishin <dmitigr@gmail.com>
  2010-08-12 14:47 ` libpq Dmitriy Igrishin <dmitigr@gmail.com>
@ 2010-08-12 15:04   ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 5+ messages in thread

From: Tom Lane @ 2010-08-12 15:04 UTC (permalink / raw)
  To: Dmitriy Igrishin <dmitigr@gmail.com>; +Cc: pgsql-hackers@postgresql.org

Dmitriy Igrishin <dmitigr@gmail.com> writes:
> Is it guaranteed that functions, which accept PGconn* (PGresult*)
> properly works if PGconn* (PGresult*) is NULL or is it better to check
> on NULL the value of the pointer before calling those functions?

I think they all do check for NULL, but whether they give back a default
result that's useful for you is harder to say.

			regards, tom lane



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


end of thread, other threads:[~2010-08-12 15:04 UTC | newest]

Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-04-06 01:04 libpq Teresa Mozejko -  Ricardo Costa <ryccosta@satlink.com>
2000-04-06 15:15 ` Antonio W. Lagnada <alagnada@lsil.com>
2010-08-10 13:35 libpq Dmitriy Igrishin <dmitigr@gmail.com>
2010-08-12 14:47 ` Dmitriy Igrishin <dmitigr@gmail.com>
2010-08-12 15:04   ` Tom Lane <tgl@sss.pgh.pa.us>

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