pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Non-blocking libpq in 7.3 beta2
4+ messages / 3 participants
[nested] [flat]

* Non-blocking libpq in 7.3 beta2
@ 2002-10-24 04:21  prashanth@jibe.biz
  0 siblings, 1 reply; 4+ messages in thread

From: prashanth@jibe.biz @ 2002-10-24 04:21 UTC (permalink / raw)
  To: pgsql-interfaces


Hi,

I noticed that the nonblocking code in the 7.3beta2 version of libpq
has been modified to fix the broken return values of PQflush, amongst
others.  

A couple of questions:

Is the nonblocking code comprehensively fixed and just awaiting beta
testing, or is it a temporary patch?

Can I use this 7.3 beta2 version of libpq against a 7.2.1 version of
the pgsql server?  It seems from various list archives that the
backend/frontend protocol has not changed so far (though it might for
7.4).  If so, then the answer should be affirmative, correct?  If not,
is there a non-beta version that the server that is usable against
this libpq?

Thanks,

--prashanth



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

* Re: Non-blocking libpq in 7.3 beta2
@ 2002-10-24 04:32  Bruce Momjian <pgman@candle.pha.pa.us>
  parent: prashanth@jibe.biz
  0 siblings, 1 reply; 4+ messages in thread

From: Bruce Momjian @ 2002-10-24 04:32 UTC (permalink / raw)
  To: prashanth@jibe.biz; +Cc: pgsql-interfaces


We believe all the non-blocking problems are fixed.  If not, please let
us know.

I don't know if you can use 7.3 beta against 7.2.X.  We always allow
7.2.X to use 7.3 server, but not always the reverse.  You can give it a
try.


---------------------------------------------------------------------------

prashanth@jibe.biz wrote:
> 
> Hi,
> 
> I noticed that the nonblocking code in the 7.3beta2 version of libpq
> has been modified to fix the broken return values of PQflush, amongst
> others.  
> 
> A couple of questions:
> 
> Is the nonblocking code comprehensively fixed and just awaiting beta
> testing, or is it a temporary patch?
> 
> Can I use this 7.3 beta2 version of libpq against a 7.2.1 version of
> the pgsql server?  It seems from various list archives that the
> backend/frontend protocol has not changed so far (though it might for
> 7.4).  If so, then the answer should be affirmative, correct?  If not,
> is there a non-beta version that the server that is usable against
> this libpq?
> 
> Thanks,
> 
> --prashanth
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



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

* Re: Non-blocking libpq in 7.3 beta2
@ 2002-10-24 13:55  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Bruce Momjian <pgman@candle.pha.pa.us>
  0 siblings, 1 reply; 4+ messages in thread

From: Tom Lane @ 2002-10-24 13:55 UTC (permalink / raw)
  To: Bruce Momjian <pgman@candle.pha.pa.us>; +Cc: prashanth@jibe.biz; pgsql-interfaces

Bruce Momjian <pgman@candle.pha.pa.us> writes:
> I don't know if you can use 7.3 beta against 7.2.X.

Should work; AFAIR libpq does not do anything that wouldn't work against
7.2 or even older servers.  7.3 psql's \d commands are pretty thoroughly
broken for older servers, but that shouldn't affect direct use of libpq.

			regards, tom lane



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

* Re: Non-blocking libpq in 7.3 beta2
@ 2002-10-29 20:12  prashanth@jibe.biz
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 4+ messages in thread

From: prashanth@jibe.biz @ 2002-10-29 20:12 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: Bruce Momjian <pgman@candle.pha.pa.us>; pgsql-interfaces


On Thu, Oct 24, 2002 at 09:55:52AM -0400, Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I don't know if you can use 7.3 beta against 7.2.X.
> 
> Should work; AFAIR libpq does not do anything that wouldn't work against
> 7.2 or even older servers.  7.3 psql's \d commands are pretty thoroughly
> broken for older servers, but that shouldn't affect direct use of libpq.
> 
> 			regards, tom lane


I'm having no problems using the 7.3b libpq against a 7.2.1 server, so
far.  

The 7.3 psql is pretty much unusable tho against a 7.2 server.  It
generates a parser error in the server as soon as it starts up and
connects:

DEBUG:  BackendStartup: forked pid=4881 socket=8
postmaster child[4881]: starting with (postgres -d2 -v131072 -p nocprovider )
DEBUG:  InitPostgres
DEBUG:  StartTransactionCommand
DEBUG:  query: select getdatabaseencoding()
DEBUG:  ProcessQuery
DEBUG:  CommitTransactionCommand
DEBUG:  StartTransactionCommand
DEBUG:  query: SELECT usesuper FROM pg_catalog.pg_user WHERE usename = 'prashanth'
ERROR:  parser: parse error at or near "."
DEBUG:  AbortCurrentTransaction

and then goes steadily downhill from there.

thanks,

--prashanth








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


end of thread, other threads:[~2002-10-29 20:12 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-10-24 04:21 Non-blocking libpq in 7.3 beta2 prashanth@jibe.biz
2002-10-24 04:32 ` Bruce Momjian <pgman@candle.pha.pa.us>
2002-10-24 13:55   ` Tom Lane <tgl@sss.pgh.pa.us>
2002-10-29 20:12     ` prashanth@jibe.biz

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