X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BBC279DC887 for ; Mon, 13 Feb 2006 15:34:03 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 95628-07 for ; Mon, 13 Feb 2006 15:34:03 -0400 (AST) X-Greylist: delayed 00:06:37.548474 by SQLgrey- Received: from smtpout05-04.prod.mesa1.secureserver.net (smtpout05-04.prod.mesa1.secureserver.net [64.202.165.221]) by postgresql.org (Postfix) with SMTP id 420AD9DC83C for ; Mon, 13 Feb 2006 15:34:00 -0400 (AST) Received: (qmail 23682 invoked from network); 13 Feb 2006 19:27:22 -0000 Received: from unknown (207.225.107.9) by smtpout05-04.prod.mesa1.secureserver.net (64.202.165.221) with ESMTP; 13 Feb 2006 19:27:22 -0000 Message-ID: <43F0DD94.8080204@deadeyesoftware.com> Date: Mon, 13 Feb 2006 12:27:16 -0700 From: Paul Vogel User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: pgsql-admin@postgresql.org Subject: A question about differences between createdb and "create database" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200602/220 X-Sequence-Number: 20641 I have a pg_dump of a database (without autocreation lines) that I tried loading by using the commands: createdb -T template0 -U postgres database; psql -U postgres database < filename I couldn't get it to connect via ODBC. But when I added the following lines in the source file: CREATE DATABASE "database" WITH TEMPLATE = template0 ENCODING = 'SQL_ASCII'; ALTER DATABASE "database" OWNER TO postgres; \connect "database" And loaded it with the command "psql -U postgres template1 < fileanme" the resultant database worked fine with ODBC. So something is apparently different between the command line "createdb" command and the "create database" command. Has anybody else run into this? And if so, are there any other problems I should be aware of? Or did I miss an option of the "createdb" line? Thanks, Paul PS - I'm currently running PostgreSQL 8.1.2 under Linux Fedora Core 2