pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #14534: renaming table error
2+ messages / 2 participants
[nested] [flat]

* BUG #14534: renaming table error
@ 2017-02-07 18:44  balazs@obiserver.hu
  0 siblings, 1 reply; 2+ messages in thread

From: balazs@obiserver.hu @ 2017-02-07 18:44 UTC (permalink / raw)
  To: pgsql-bugs

The following bug has been logged on the website:

Bug reference:      14534
Logged by:          Balazs Peter
Email address:      balazs@obiserver.hu
PostgreSQL version: 9.6.1
Operating system:   Debian GNU/Linux 9
Description:        

test=# create table test.testtable (id bigserial not null primary key, t
text not null);
CREATE TABLE
test=# alter table test.testtable rename to _testtable;
ERROR:  type "_testtable" already exists

There is no, believe me!

test=# alter table test.testtable rename to testtable2;
ALTER TABLE
test=# alter table test.testtable2 rename to _testtable;
ALTER TABLE

Now it's possible? :)


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs


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

* Re: BUG #14534: renaming table error
@ 2017-02-07 18:49  Tom Lane <tgl@sss.pgh.pa.us>
  parent: balazs@obiserver.hu
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2017-02-07 18:49 UTC (permalink / raw)
  To: balazs@obiserver.hu; +Cc: pgsql-bugs

balazs@obiserver.hu writes:
> test=# create table test.testtable (id bigserial not null primary key, t
> text not null);
> CREATE TABLE
> test=# alter table test.testtable rename to _testtable;
> ERROR:  type "_testtable" already exists

> There is no, believe me!

Yes, there is ... it's the name given to the array type over the
table's composite type.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



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


end of thread, other threads:[~2017-02-07 18:49 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-02-07 18:44 BUG #14534: renaming table error balazs@obiserver.hu
2017-02-07 18:49 ` Tom Lane <tgl@sss.pgh.pa.us>

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