Re: BUG #7657: Create Table doesn't create columns

From: "Matthew Kuss" <matt(at)rigminder(dot)com>
To: "'Tom Lane'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: <depesz(at)depesz(dot)com>, <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #7657: Create Table doesn't create columns
Date: 2012-11-14 20:49:13
Message-ID: 004001cdc2a9$81a777b0$84f66710$@rigminder.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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(at)sss(dot)pgh(dot)pa(dot)us]
Sent: Wednesday, November 14, 2012 2:03 PM
To: Matthew Kuss
Cc: depesz(at)depesz(dot)com; pgsql-bugs(at)postgresql(dot)org
Subject: Re: [BUGS] BUG #7657: Create Table doesn't create columns

"Matthew Kuss" <matt(at)rigminder(dot)com> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message dominique-doisne 2012-11-14 21:45:56 BUG #7660: Installation problem
Previous Message Tom Lane 2012-11-14 20:02:33 Re: BUG #7657: Create Table doesn't create columns