Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id AF86315F61C3 for ; Wed, 16 Nov 2011 19:59:32 -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 28336-06 for ; Wed, 16 Nov 2011 23:59:26 +0000 (UTC) Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id D574215F61C1 for ; Wed, 16 Nov 2011 19:59:26 -0400 (AST) Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQpO2-0004OR-MQ for pgsql-admin@postgresql.org; Wed, 16 Nov 2011 23:59:27 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id pAGNvvwf024310; Wed, 16 Nov 2011 18:57:57 -0500 (EST) To: David Schnur cc: pgsql-admin@postgresql.org Subject: Re: How and when are encoding DLLs used on Windows? In-reply-to: References: Comments: In-reply-to David Schnur message dated "Wed, 16 Nov 2011 11:04:59 -0500" Date: Wed, 16 Nov 2011 18:57:57 -0500 Message-ID: <24309.1321487877@sss.pgh.pa.us> From: Tom Lane 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/92 X-Sequence-Number: 38686 David Schnur writes: > 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. > So I'm wondering what these are used for, what executable or library ends > up loading them, and when/how exactly this happens. They're used for character set encoding conversions, eg when database_encoding = UTF8 and client_encoding = LATIN1 (or any other non-identical combination). > I'd like to know > whether they're actually necessary, since we could save some space in our > installer by omitting them. AFAIR, the system will function without 'em ... until you try to set client_encoding different from database_encoding. Removing that functionality doesn't seem like a good idea to me, but if you know the needs of your userbase precisely, maybe you could get away with it. regards, tom lane