I am using Postgres 10 on Centos (PostgreSQL 10.17 on x86_64-pc-linux-gnu, compiled by gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44), 64-bit)
When I execute the SQL statement below I receive the error "invalid input syntax for type oid:"
SELECT persistenceid, process_id, process_id AS case_id, completed_date_time,
created_date_time::timestamp AT TIME ZONE 'EST' AS created_date_time,
status, customer_id, request_type AS ticket_type, user_id, requestor_id,
requester, customer_id, jira_ticket, feedback_type, priority,
public_request, request_method, title,
convert_from(lo_get(description::oid),'UTF8') AS description
FROM supportrequest
WHERE (user_id=5 OR requestor_id=5)
AND customer_id='346361'
ORDER BY created_date_time DESC;
If I execute the statement without the WHERE clause It works fine.
select ''::oid;