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

Поиск
Список
Период
Сортировка
От Juan José Santamaría Flecha
Тема Re: SELECT query fails after pg_upgrade as the conditional operator fails
Дата
Msg-id CAC+AXB2qE9ZF8MZZ=OSEfg6ufKuGBn-6ZzNwT-iAJhE5UHOh7g@mail.gmail.com
обсуждение исходный текст
Ответ на SELECT query fails after pg_upgrade as the conditional operator fails  (Nithin Johnson <nithin.johnson@altair.com>)
Ответы RE: SELECT query fails after pg_upgrade as the conditional operatorfails  (Nithin Johnson <nithin.johnson@altair.com>)
Список pgsql-admin

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

В списке pgsql-admin по дате отправления:

Предыдущее
От: Nithin Johnson
Дата:
Сообщение: SELECT query fails after pg_upgrade as the conditional operator fails
Следующее
От: bricklen
Дата:
Сообщение: Re: LDAP security connection