Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 0D05D9FB345; Wed, 18 Oct 2006 16:01:43 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 52132-06; Wed, 18 Oct 2006 19:01:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- X-Greylist: from auto-whitelisted by SQLgrey- Received: from lists.commandprompt.com (host-130.commandprompt.net [207.173.203.130]) by postgresql.org (Postfix) with ESMTP id 7E0119FB336; Wed, 18 Oct 2006 16:01:29 -0300 (ADT) Received: from alvh.no-ip.org (200-126-100-219.bk7-dsl.surnet.cl [200.126.100.219]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id k9IJ1F4M015103; Wed, 18 Oct 2006 12:01:20 -0700 Received: by alvh.no-ip.org (Postfix, from userid 1000) id 6EA27C1B80A; Wed, 18 Oct 2006 16:00:50 -0300 (CLST) Date: Wed, 18 Oct 2006 16:00:50 -0300 From: Alvaro Herrera To: Tom Lane Cc: Magnus Hagander , George Pavlov , pgsql-general@postgresql.org, pgsql-hackers@postgresql.org Subject: Re: [HACKERS] query log corrupted-looking entries Message-ID: <20061018190050.GA23756@alvh.no-ip.org> Mail-Followup-To: Tom Lane , Magnus Hagander , George Pavlov , pgsql-general@postgresql.org, pgsql-hackers@postgresql.org References: <6BCB9D8A16AC4241919521715F4D8BCEA0FC5E@algol.sollentuna.se> <28340.1161193074@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <28340.1161193074@sss.pgh.pa.us> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: ClamAV version 0.88.4, clamav-milter version 0.88.4 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Wed, 18 Oct 2006 12:01:20 -0700 (PDT) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.135 tagged_above=0 required=5 tests=FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/925 X-Sequence-Number: 102451 Tom Lane wrote: > "Magnus Hagander" writes: > > Should work fine on Windows. fileno() is deprecated however, with the > > following comment: > > C:\Program Files\Microsoft Visual Studio > > 8\VC\INCLUDE\stdio.h(688) : see > > declaration of 'fileno' > > Message: 'The POSIX name for this item is deprecated. Instead, > > use the ISO C++ conformant name: _fileno. See online help for details.' > > Only Microsoft would think that they get to unilaterally deprecate a > POSIX standard API :-( Yeah, these are the same guys who chose to implement select() to only work on sockets and not on plain file descriptors (for example you can't make it work on a pipe). This must be the single most far-reaching change they did to POSIX compatibility. It's incredibly idiotic and problematic. And note that it's not that it's deprecated -- it just doesn't work at all :-( -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support