pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does
4+ messages / 4 participants
[nested] [flat]

* Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does
@ 2015-12-03 10:52 otheus uibk <otheus.uibk@gmail.com>
  2015-12-03 12:07 ` Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does Michael Paquier <michael.paquier@gmail.com>
  2015-12-03 12:20 ` Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does Marko Tiikkaja <marko@joh.to>
  2015-12-03 13:08 ` Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist"  then it does Daniel Verite <daniel@manitou-mail.org>
  0 siblings, 3 replies; 4+ messages in thread

From: otheus uibk @ 2015-12-03 10:52 UTC (permalink / raw)
  To: pgsql-bugs

I have found a potential bug in 9.1.8 with no corresponding CHANGELOG entry
through 9.1.19.

      nuxeotest1-> alter table info add column testxxx numeric ;
      ALTER TABLE
      nuxeotest1=> alter table info drop column textxxx ;
      ERROR:  column "textxxx" of relation "info" does not exist
      nuxeotest1=> alter table info drop column testxxx ;
      ALTER TABLE
      nuxeotest1=>

Originally, the point of this exercise was to test permissions.

After logging off and back in again, I could not reproduce the problem.
I could not reproduce the problem on 9.2.10.

Is this a known glitch?

-- 
Otheus
otheus.uibk@gmail.com
otheus.shelling@uibk.ac.at

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

* Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does
  2015-12-03 10:52 Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does otheus uibk <otheus.uibk@gmail.com>
@ 2015-12-03 12:07 ` Michael Paquier <michael.paquier@gmail.com>
  2 siblings, 0 replies; 4+ messages in thread

From: Michael Paquier @ 2015-12-03 12:07 UTC (permalink / raw)
  To: otheus uibk <otheus.uibk@gmail.com>; +Cc: pgsql-bugs

On Thu, Dec 3, 2015 at 7:52 PM, otheus uibk <otheus.uibk@gmail.com> wrote:
> I have found a potential bug in 9.1.8 with no corresponding CHANGELOG entry
> through 9.1.19.
>
>       nuxeotest1-> alter table info add column testxxx numeric ;
>       ALTER TABLE
>       nuxeotest1=> alter table info drop column textxxx ;
>       ERROR:  column "textxxx" of relation "info" does not exist
>       nuxeotest1=> alter table info drop column testxxx ;
>       ALTER TABLE
>       nuxeotest1=>
>
> Originally, the point of this exercise was to test permissions.
>
> After logging off and back in again, I could not reproduce the problem.
> I could not reproduce the problem on 9.2.10.
>
> Is this a known glitch?

Do you see an error on 9.1.19? That's what would be interesting. If
you think there is indeed a bug, could you provide a self-contained
test-case?
-- 
Michael


-- 
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] 4+ messages in thread

* Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does
  2015-12-03 10:52 Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does otheus uibk <otheus.uibk@gmail.com>
@ 2015-12-03 12:20 ` Marko Tiikkaja <marko@joh.to>
  2 siblings, 0 replies; 4+ messages in thread

From: Marko Tiikkaja @ 2015-12-03 12:20 UTC (permalink / raw)
  To: otheus uibk <otheus.uibk@gmail.com>; pgsql-bugs

Is this the exact, unaltered session transcript?  Because:

On 12/3/15 11:52 AM, otheus uibk wrote:
>        nuxeotest1-> alter table info add column testxxx numeric ;

The prompt here suggests you were in the middle of another command while 
running this.  If you did *any* changes to the transcript, it's 
impossible to even guess what exactly happened.  As written, the 
transcript seems sketchy.

Do you log DDL statements?  That would probably be the easiest way to 
figure out the exact series of commands.


.m


-- 
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] 4+ messages in thread

* Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist"  then it does
  2015-12-03 10:52 Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does otheus uibk <otheus.uibk@gmail.com>
@ 2015-12-03 13:08 ` Daniel Verite <daniel@manitou-mail.org>
  2 siblings, 0 replies; 4+ messages in thread

From: Daniel Verite @ 2015-12-03 13:08 UTC (permalink / raw)
  To: otheus uibk <otheus.uibk@gmail.com>; +Cc: pgsql-bugs

	otheus uibk wrote:

>      nuxeotest1-> alter table info add column testxxx numeric ;
>       ALTER TABLE
>       nuxeotest1=> alter table info drop column textxxx ;
>       ERROR:  column "textxxx" of relation "info" does not exist
>       nuxeotest1=> alter table info drop column testxxx ;
>       ALTER TABLE
>       nuxeotest1=>

testxxx is added
textxxx fails to be removed.

That's not the same identifier. So isn't that just a typo?

Best regards,
-- 
Daniel Vérité
PostgreSQL-powered mailer: http://www.manitou-mail.org
Twitter: @DanielVerite


-- 
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] 4+ messages in thread


end of thread, other threads:[~2015-12-03 13:08 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2015-12-03 10:52 Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist" then it does otheus uibk <otheus.uibk@gmail.com>
2015-12-03 12:07 ` Michael Paquier <michael.paquier@gmail.com>
2015-12-03 12:20 ` Marko Tiikkaja <marko@joh.to>
2015-12-03 13:08 ` Re: Possible bug: ALTER TABLE x DROP COLUMN y "column ... does not exist"  then it does Daniel Verite <daniel@manitou-mail.org>

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