Re: SELECT query fails after pg_upgrade as the conditional operator fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The following query fails:

SELECT * from table where jobid = 'foo';

 

Whereas the following is passing:

SELECT * from table where jobid LIKE '%foo';

SELECT * from table where trim(jobid) = 'foo';

 

We were suspecting some leading invisible characters before 'foo'. but the following queries went well:

SELECT left(jobid, 1) from table where jobid LIKE '%foo';

SELECT ascii(jobid) from table where jobid LIKE '%foo';


Please post the error code, also the plan for the different queries and the description of the table.

Can you check if rebuilding the table's indexes solves the issue? If so, send output of that operation.

Regards,

Juan José Santamaría Flecha

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux