Re: Fix error message when trying to alter statistics on included column

2018-07-16 Thread Alvaro Herrera
On 2018-Jun-28, Yugo Nagata wrote: > According to the error message, it is not allowed to alter statistics on > included column because this is "non-expression column". > > postgres=# create table test (i int, d int); > CREATE TABLE > postgres=# create index idx on test(i) include (d); >

Re: Fix error message when trying to alter statistics on included column

2018-07-12 Thread Andres Freund
Hi Alexander, Teodor, On 2018-06-28 18:28:03 +0900, Yugo Nagata wrote: > According to the error message, it is not allowed to alter statistics on > included column because this is "non-expression column". > > postgres=# create table test (i int, d int); > CREATE TABLE > postgres=# create

Re: Fix error message when trying to alter statistics on included column

2018-07-06 Thread Yugo Nagata
On Mon, 2 Jul 2018 14:23:09 -0400 Robert Haas wrote: > On Thu, Jun 28, 2018 at 5:28 AM, Yugo Nagata wrote: > > According to the error message, it is not allowed to alter statistics on > > included column because this is "non-expression column". > > > > postgres=# create table test (i int, d

Re: Fix error message when trying to alter statistics on included column

2018-07-02 Thread Robert Haas
On Thu, Jun 28, 2018 at 5:28 AM, Yugo Nagata wrote: > According to the error message, it is not allowed to alter statistics on > included column because this is "non-expression column". > > postgres=# create table test (i int, d int); > CREATE TABLE > postgres=# create index idx on test(i)

Fix error message when trying to alter statistics on included column

2018-06-28 Thread Yugo Nagata
Hi, According to the error message, it is not allowed to alter statistics on included column because this is "non-expression column". postgres=# create table test (i int, d int); CREATE TABLE postgres=# create index idx on test(i) include (d); CREATE INDEX postgres=# alter index idx alter