Re: Server goes to Recovery Mode when run a SQL

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: PegoraroF10 <marcos(at)f10(dot)com(dot)br>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Server goes to Recovery Mode when run a SQL
Date: 2020-08-14 17:44:49
Message-ID: 650987.1597427089@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

PegoraroF10 <marcos(at)f10(dot)com(dot)br> writes:
> So, how can I know which custom operator is being used on that comparison ?

You tell us. I don't know of any common extension that would create
a "smallint = text" operator. (A variant theory is that you didn't
make a new operator, but an implicit cast from smallint to text.
Either way, it almost certainly is a homebrew thing. Or maybe what
you are running is not stock Postgres?)

It might be interesting to try some direct test, like

SELECT 22::smallint = 'foo'::text;

For me that gives the same "operator does not exist: smallint = text"
error, but I bet your database tries to execute it.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message PegoraroF10 2020-08-14 18:33:21 Re: Server goes to Recovery Mode when run a SQL
Previous Message Ben Madin 2020-08-14 17:15:39 Re: index numbers in pg_restore list