Skip site navigation (1) Skip section navigation (2)

Re: [HACKERS] Current Win32 port status

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: Re: [HACKERS] Current Win32 port status
Date: 2003-12-22 18:28:18
Message-ID: 3FE737C2.7080105@dunslane.net (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-hackers-win32pgsql-patches
Tom Lane wrote:

>
>AFAIR there is no place in Postgres where performance of a pipe
>connection is critical.  Don't go out of your way to make it fast.
>
>In fact, right offhand I only see two pipes used at all in the source
>code: they are both in pgstat.c.  It's fairly likely that that could be
>redesigned if it poses a problem on Windows.  (One of the pipes never
>even transports any data; it's only used as a cheap-and-dirty means of
>letting the statistics subprocess detect postmaster exit.)
>
>  
>

You are correct - I noticed that. Also, the only places in the backend 
where we seem to use select() on FDs are in pgstat.c and postmaster.c, 
and in the latter case the FDs *are* sockets, so we won't have a problem 
there on Windows. There are a couple of other places where it is used 
for small sleeps (storage/lmgr/s_lock.c and access/transam/xact.c) - 
those should possibly be abstracted out (Windows doesn't behave well 
there anyway, I believe - with 0 FDs I read somewhere it returns 
immediately regardless of the timeout setting).

Bottom line: this should be a very small nut to crack.

cheers

andrew




In response to

Responses

pgsql-hackers by date

Next:From: Marc G. FournierDate: 2003-12-22 18:43:53
Subject: Re: [COMMITTERS] pgsql-server/doc/src/sgml Tag: REL7_4_STABLE
Previous:From: Dan LangilleDate: 2003-12-22 18:21:53
Subject: Re: PostgreSQL speakers needed for OSCON 2004

pgsql-patches by date

Next:From: Bruce MomjianDate: 2003-12-22 20:13:03
Subject: Re: [GENERAL] Temporary tables and miscellaneous schemas
Previous:From: Andreas PflugDate: 2003-12-22 16:18:04
Subject: Re: cascading column drop to index predicates

pgsql-hackers-win32 by date

Next:From: Claudio NatoliDate: 2003-12-22 22:46:49
Subject: Re: [HACKERS] Current Win32 port status
Previous:From: Tom LaneDate: 2003-12-22 15:48:06
Subject: Re: [HACKERS] Current Win32 port status

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group