Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 6311C804C69 for ; Wed, 16 Nov 2011 22:29:06 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 86134-02 for ; Thu, 17 Nov 2011 02:29:00 +0000 (UTC) Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 7815B804C6B for ; Wed, 16 Nov 2011 22:28:58 -0400 (AST) Received: from mail-vx0-f174.google.com ([209.85.220.174]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQrij-0006Aq-8g for pgsql-admin@postgresql.org; Thu, 17 Nov 2011 02:28:59 +0000 Received: by vcbfk1 with SMTP id fk1so1143450vcb.19 for ; Wed, 16 Nov 2011 18:28:42 -0800 (PST) Received: by 10.220.107.201 with SMTP id c9mr3747952vcp.20.1321496922818; Wed, 16 Nov 2011 18:28:42 -0800 (PST) Received: from ayaki.localdomain (58-7-229-41.dyn.iinet.net.au. [58.7.229.41]) by mx.google.com with ESMTPS id em10sm23345695vdc.6.2011.11.16.18.28.40 (version=SSLv3 cipher=OTHER); Wed, 16 Nov 2011 18:28:42 -0800 (PST) Message-ID: <4EC47155.3090306@ringerc.id.au> Date: Thu, 17 Nov 2011 10:28:37 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1 MIME-Version: 1.0 To: David Schnur CC: pgsql-admin@postgresql.org Subject: Re: How and when are encoding DLLs used on Windows? References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201111/93 X-Sequence-Number: 38687 On 11/17/2011 12:04 AM, David Schnur wrote: > I bundle Postgres (8.3.15) with another product as a back-end database. > On Windows, the default build includes a bunch of what appear to be > codec libraries, with names like, > utf8_and_cyrillic.dll, ascii_and_mic.dll, etc. But using Microsoft's > dependency walker tool, I see no references to any of these in > libpq.dll, psql, postgres or initdb. They're loaded by LoadLibrary calls. You'll see that the names do appear in the server executable as strings. The PL libraries and contrib libraries are similar, in that you won't see direct dependencies but they'll still get used via LoadLibrary if your database calls for them. -- Craig Ringer