Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 91C192E0159 for ; Wed, 23 Jan 2008 19:54:13 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 23587-01-7 for ; Wed, 23 Jan 2008 19:54:01 -0400 (AST) Received: from twigger.atof.net (twigger.atof.net [70.42.55.28]) by postgresql.org (Postfix) with ESMTP id C93A72E3022 for ; Wed, 23 Jan 2008 19:21:08 -0400 (AST) Received: from [192.168.1.223] ([::ffff:216.171.183.110]) (AUTH: CRAM-MD5 tomhart@coopfed.org, TLS: TLSv1/SSLv3, 256bits, AES256-SHA) by twigger.atof.net with esmtp; Wed, 23 Jan 2008 18:21:07 -0500 id 002CB2AA.4797CBE3.00005636 Message-ID: <4797CB92.9080009@coopfed.org> Date: Wed, 23 Jan 2008 18:19:46 -0500 From: Tom Hart User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Postgres General List Subject: [Fwd: Re: retry: converting ASCII to UTF-8] Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200801/1197 X-Sequence-Number: 127404 Martin Gainty wrote: > character encoding is implemented at Database level not the table > http://www.postgresql.org/docs/8.2/interactive/sql-createdatabase.html > CREATE DATABASE name > [ [ WITH ] [ OWNER [=] dbowner ] [ TEMPLATE [=] template ] > [ ENCODING [=] encoding ] > [ TABLESPACE [=] tablespace ] > [ CONNECTION LIMIT [=] connlimit ] ] > > vs Table > CREATE [ [ GLOBAL | LOCAL ] { TEMPORARY | TEMP } ] TABLE table_name ( [ > { column_name data_type [ DEFAULT default_expr ] [ column_constraint [ > .. ] ] > | table_constraint > | LIKE parent_table [ { INCLUDING | EXCLUDING } { DEFAULTS | > CONSTRAINTS } ] ... } > [, ... ] > ] ) > [ INHERITS ( parent_table [, ... ] ) ] > [ WITH ( storage_parameter [= value] [, ... ] ) | WITH OIDS | WITHOUT OIDS ] > [ ON COMMIT { PRESERVE ROWS | DELETE ROWS | DROP } ] > [ TABLESPACE tablespace ] > > HTH > M- > ----- Original Message ----- > From: "Tom Hart" > To: "Postgres General List" > Sent: Wednesday, January 23, 2008 3:32 PM > Subject: [GENERAL] retry: converting ASCII to UTF-8 I think you may have misunderstood. I realize that encoding is a database setting, which is why I originally dumped and recreated the whole db. I tried a full restore with some success, but it kept hanging on a specific table, a very large one. I decided to limit the dump and restore to that table, though the from database is encoded 'SQL-ASCII' and the to database is 'UTF8'. I must have explained it poorly. My current problem is waiting for the third message to finally post to this list so I can get help with my 'out of memory' error. Thanks for your help anyway :-) -- Tom Hart IT Specialist Cooperative Federal 723 Westcott St. Syracuse, NY 13210 (315) 471-1116 ext. 202 (315) 476-0567 (fax) -- Tom Hart IT Specialist Cooperative Federal 723 Westcott St. Syracuse, NY 13210 (315) 471-1116 ext. 202 (315) 476-0567 (fax)