pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
alter table .. reset not throwing an error if storage_parameter name is wrong
2+ messages / 2 participants
[nested] [flat]

* alter table .. reset not throwing an error if storage_parameter name is wrong
@ 2016-04-28 12:07 tushar <tushar.ahuja@enterprisedb.com>
  2016-04-28 12:38 ` Re: alter table .. reset not throwing an error if storage_parameter name is wrong Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 1 reply; 2+ messages in thread

From: tushar @ 2016-04-28 12:07 UTC (permalink / raw)
  To: pgsql-bugs

Hi,

I checked in PG 9.6  , if i provide any wrong storage parameter name  
while doing alter table , reset is not
throwing an error :-

\\throwing error , expected
postgres=# alter table lon set (foo=10);
ERROR:  unrecognized parameter "foo"

\\working ?
postgres=# alter table lon reset (foo);
ALTER TABLE

-- 
regards,tushar



-- 
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: alter table .. reset not throwing an error if storage_parameter name is wrong
  2016-04-28 12:07 alter table .. reset not throwing an error if storage_parameter name is wrong tushar <tushar.ahuja@enterprisedb.com>
@ 2016-04-28 12:38 ` Michael Paquier <michael.paquier@gmail.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Paquier @ 2016-04-28 12:38 UTC (permalink / raw)
  To: tushar <tushar.ahuja@enterprisedb.com>; +Cc: pgsql-bugs

On Thu, Apr 28, 2016 at 9:07 PM, tushar <tushar.ahuja@enterprisedb.com> wrote:
> I checked in PG 9.6  , if i provide any wrong storage parameter name  while
> doing alter table , reset is not
> throwing an error :-
>
> \\throwing error , expected
> postgres=# alter table lon set (foo=10);
> ERROR:  unrecognized parameter "foo"
>
> \\working ?
> postgres=# alter table lon reset (foo);
> ALTER TABLE

That's wanted this way for ages. RESET is an operation that does not
fail on a non-existing parameter.
-- 
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] 2+ messages in thread


end of thread, other threads:[~2016-04-28 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-04-28 12:07 alter table .. reset not throwing an error if storage_parameter name is wrong tushar <tushar.ahuja@enterprisedb.com>
2016-04-28 12:38 ` Michael Paquier <michael.paquier@gmail.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