Skip site navigation (1) Skip section navigation (2)

Re: BUG #6734: create table (like ...) fails if an index has a comment

From: Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Ryan Kelly <rpkelly22(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #6734: create table (like ...) fails if an index has a comment
Date: 2012-07-13 15:16:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugs
On Fri, Jul 13, 2012 at 4:11 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Daniele Varrazzo <daniele(dot)varrazzo(at)gmail(dot)com> writes:
>> Wouldn't it be better to call the indexes NEWTABLE_OLDINDEXNAME?
> Then the CREATE LIKE command would fail altogether if that name were
> already taken.  Postponing the selection of the index name to the time
> when DefineIndex runs is really the only safe thing.

I've actually suggested to keep the numeric suffix to disambiguate in
case the name is already taken, as I assume the current "create like"
does. However this is not strictly related to the bug, it's more an
usability problem, so won't bother you with it anymore.

-- Daniele

In response to

pgsql-bugs by date

Next:From: Peter EisentrautDate: 2012-07-13 20:52:00
Subject: Re: pg_basebackup de.po: Wrong translation
Previous:From: Craig RingerDate: 2012-07-13 15:15:55
Subject: Re: BUG #6735: PANIC: 42501: could not open control file "global/pg_control": Permission denied

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group