Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYfUr-0000jt-4F for pgsql-bugs@postgresql.org; Wed, 14 Nov 2012 16:07:25 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYfUp-0001yl-C8 for pgsql-bugs@postgresql.org; Wed, 14 Nov 2012 16:07:24 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.80) (envelope-from ) id 1TYfUm-000426-TE; Wed, 14 Nov 2012 17:07:21 +0100 Date: Wed, 14 Nov 2012 17:07:20 +0100 From: hubert depesz lubaczewski To: Matthew Kuss Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #7657: Create Table doesn't create columns Message-ID: <20121114160720.GA13116@depesz.com> Reply-To: depesz@depesz.com References: <20121113231947.GA7849@depesz.com> <000f01cdc281$1ef20680$5cd61380$@rigminder.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <000f01cdc281$1ef20680$5cd61380$@rigminder.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Pg-Spam-Score: -2.1 (--) X-Archive-Number: 201211/67 X-Sequence-Number: 34625 On Wed, Nov 14, 2012 at 10:00:08AM -0600, Matthew Kuss wrote: > Depesz - > > I'm fairly sure it's not a problem with something I'm doing wrong > because I've used the same code before. It has to be something wrong > on the DB side. But just to entertain you I did as you requested: > > RigMinder_NewDBTest02=# \d test > Table "public.test" > Column | Type | Modifiers > --------+------+----------- > > > RigMinder_NewDBTest02=# > > Before I ran this I created a table using the following: > > create table "test" ("column1" text, "column2" float); > > It ran without any errors. Yesterday after I sent out the help request > I uninstalled postgresql and installed version 9.0.10 and I'm having > the same problem. It does look like it only occurs when my logging > package is running. Ie if I shut it down, I can create tables in > pgAdmin, but as soon as my program is running, I get the errors > described above. Any other ideas on how to fix this? What "logging package"? From what you describe, it looks that it interferes, which would clearly suggest that it's the guilty part. I did create the table you said, and it works without any problems: (depesz@[local]:5920) 17:05:00 [depesz] $ create table "test" ("column1" text, "column2" float); CREATE TABLE (depesz@[local]:5920) 17:05:05 [depesz] $ \d test Table "public.test" Column | Type | Modifiers ---------+------------------+----------- column1 | text | column2 | double precision | I know that this is not helpful, but as you said - when you remove your program from the situation, everything works ok. check then what the program does. Best regards, depesz -- The best thing about modern society is how easy it is to avoid contact with it. http://depesz.com/