Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYjte-0000GQ-D5 for pgsql-bugs@postgresql.org; Wed, 14 Nov 2012 20:49:18 +0000 Received: from ecbiz115.inmotionhosting.com ([69.174.114.17]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TYjtc-000671-DZ for pgsql-bugs@postgresql.org; Wed, 14 Nov 2012 20:49:17 +0000 Received: from [173.200.119.18] (port=54025 helo=MattPC) by ecbiz115.inmotionhosting.com with esmtp (Exim 4.77) (envelope-from ) id 1TYjtZ-00083S-Uq; Wed, 14 Nov 2012 15:49:14 -0500 From: "Matthew Kuss" To: "'Tom Lane'" Cc: , References: <20121113231947.GA7849@depesz.com> <000f01cdc281$1ef20680$5cd61380$@rigminder.com> <24566.1352923353@sss.pgh.pa.us> In-Reply-To: <24566.1352923353@sss.pgh.pa.us> Subject: Re: BUG #7657: Create Table doesn't create columns Date: Wed, 14 Nov 2012 14:49:13 -0600 Message-ID: <004001cdc2a9$81a777b0$84f66710$@rigminder.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQLb3/6VjRua/ELe1NB41nGVQ0qC5AGpnpF5AkSY5NwCciT765WajiQw Content-Language: en-us X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ecbiz115.inmotionhosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - rigminder.com X-Source: X-Source-Args: X-Source-Dir: X-Pg-Spam-Score: -0.5 (/) X-Archive-Number: 201211/85 X-Sequence-Number: 34643 Thanks everyone for the help. I have it working now. Unfortunately I'm not sure why it wasn't working before or what was causing the problem. I spent all day taking piece after piece out of my "logging package" (Depesz - this is a program that I wrote and modified over the past few years) until I found the part that was causing the error. I was still unable to figure out why this particular part wasn't working so I just replaced it with some other code I had for a different project that was based off of this problem code. Long story short, it's working now, but I'm not sure why it's working this way but not the other way. Hopefully sometime soon I'll have time to go back and figure out what happened. If I do, I'll let ya'll know! Thanks again for the help! Matt -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: Wednesday, November 14, 2012 2:03 PM To: Matthew Kuss Cc: depesz@depesz.com; pgsql-bugs@postgresql.org Subject: Re: [BUGS] BUG #7657: Create Table doesn't create columns "Matthew Kuss" writes: > 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); Hm ... maybe that's creating the table somewhere other than schema public? What have you got search_path set to? Try \dt *.test to see if there's more than one table named "test". regards, tom lane