select query does not pick up the right index

2019-01-02 Thread Abadie Lana
Hi all I would appreciate any hints as this problem looks to me rather strange...I tried to google it but in vain. select t.name, c.smpl_time,c.nanosecs,c.float_val,c.num_val,c.str_val,c.datatype,c.array_val from sample c, channel t where t.channel_id=c.channel_id and t.name='BUIL-B36-VA-RT-RT1

Re: select query does not pick up the right index

2019-01-02 Thread Justin Pryzby
On Wed, Jan 02, 2019 at 04:28:41PM +, Abadie Lana wrote: > css_archive_3_0_0=# explain analyze select t.name, > c.smpl_time,c.nanosecs,c.float_val,c.num_ > val,c.str_val,c.datatype,c.array_val from > sample c, channel t wh

Re: select query does not pick up the right index

2019-01-02 Thread David Rowley
On Thu, 3 Jan 2019 at 05:28, Abadie Lana wrote: > I would appreciate any hints as this problem looks to me rather strange…I > tried to google it but in vain. > > select t.name, > c.smpl_time,c.nanosecs,c.float_val,c.num_val,c.str_val,c.datatype,c.array_val > from sample c, channel t where t.cha