Re: Server goes to Recovery Mode when run a SQL
Marcos Pegoraro <marcos@f10.com.br>
From: PegoraroF10 <marcos@f10.com.br>
To: pgsql-general@postgresql.org
Date: 2020-08-14T19:17:44Z
Lists: pgsql-general
Well, I didn´t know where was the problem exactly, then ...
The entire script to see that problem is
create domain public.i32 as integer;
CREATE FUNCTION public.fntextonumero(ftext text, finteger public.i32)
RETURNS boolean
LANGUAGE sql STABLE
AS $$
SELECT ftext = finteger::text;
$$;
CREATE FUNCTION public.fntextonumero(finteger public.i32, ftext text)
RETURNS boolean
LANGUAGE sql STABLE
AS $$
SELECT ftext = finteger::text;
$$;
CREATE OPERATOR public.= (
FUNCTION = public.fntextonumero,
LEFTARG = text,
RIGHTARG = public.i32
);
CREATE OPERATOR public.= (
FUNCTION = public.fntextonumero,
LEFTARG = public.i32,
RIGHTARG = text
);
Then that script I´ve sent you this morning.
This way I think you can get the problem. Is this a Postgres problem ? Well,
I created these operators because Firebird accepts comparisons between
numeric and text values, and as we converted from that ... I found a way to
continue comparing them. The problem ocurred now because the IN operator.
--
Sent from: https://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
Commits
-
Be more careful about the shape of hashable subplan clauses.
- dea07098af20 10.15 landed
- b538e83f17e3 13.0 landed
- 9d472b51e987 11.10 landed
- 912fb290c5dd 12.5 landed
- 7241edc4fa8c 9.6.20 landed
- 5190707d7436 9.5.24 landed
- 1e7629d2c95f 14.0 landed