pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Error creating a table
2+ messages / 2 participants
[nested] [flat]

* Error creating a table
@ 2018-01-02 22:38 Dale Seaburg <kg5lt@verizon.net>
  2018-01-02 22:40 ` Re: Error creating a table Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Dale Seaburg @ 2018-01-02 22:38 UTC (permalink / raw)
  To: pgsql-general

I am in pgAdmin, attempting to create a table in an existing database.
This table is normally created and deleted by software I have written (C#).
I get this kind of error when executing the CREATE TABLE script (which 
is a copy of similarly named table):

NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 
"public_rowkey" for table "ABSTRACT-SERVER_runsheet"

ERROR:  relation "public_rowkey" already exists

********** Error **********

ERROR: relation "public_rowkey" already exists
SQL state: 42P07

I have looked for rowkey in the "public" schema, but find nothing.
What can be the problem?  What might I be doing wrong?  I'm not sure 
what to do.

Dale





^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Error creating a table
  2018-01-02 22:38 Error creating a table Dale Seaburg <kg5lt@verizon.net>
@ 2018-01-02 22:40 ` Joshua D. Drake <jd@commandprompt.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Joshua D. Drake @ 2018-01-02 22:40 UTC (permalink / raw)
  To: Dale Seaburg <kg5lt@verizon.net>; pgsql-general

On 01/02/2018 02:38 PM, Dale Seaburg wrote:
> le):
>
> NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index 
> "public_rowkey" for table "ABSTRACT-SERVER_runsheet"
>
> ERROR:  relation "public_rowkey" already exists
>
> ********** Error **********
>
> ERROR: relation "public_rowkey" already exists
> SQL state: 42P07
>
> I have looked for rowkey in the "public" schema, but find nothing.
> What can be the problem?  What might I be doing wrong?  I'm not sure 
> what to do.

I don't use PgAdmin but the error appears to be looking for 
public_rowkey not public.rowkey. Further, it isn't a table you would be 
looking for but an index.

Thanks,

JD

>
> Dale
>
>

-- 
Command Prompt, Inc. || http://the.postgres.company/ || @cmdpromptinc

PostgreSQL centered full stack support, consulting and development.
Advocate: @amplifypostgres || Learn: https://postgresconf.org
*****     Unless otherwise stated, opinions are my own.   *****





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2018-01-02 22:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-01-02 22:38 Error creating a table Dale Seaburg <kg5lt@verizon.net>
2018-01-02 22:40 ` Joshua D. Drake <jd@commandprompt.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox