Thread: Unrecognized Node Type Warning
We are using PostgreSQL 12.13. We are noticing that queries that attempt to retrieve an element of an array by specifying its position cause a warning to be emitted: "WARNING: unrecognized node type: 110".
Would appreciate your help diagnosing the issue and identifying steps to resolve.
Queries that reproduce the issue:
SELECT ('{0}'::int2[])[0];
WARNING: unrecognized node type: 110
int2
------
(1 row)
SELECT ('0'::int2vector)[0];
WARNING: unrecognized node type: 110
int2vector
------------
0
(1 row)
SELECT (indkey::int2[])[0] FROM pg_index limit 1;
WARNING: unrecognized node type: 110
indkey
--------
1
(1 row)
SELECT scores[1], scores[2], scores[3], scores[4] FROM (select('{10,12,14,16}'::int[]) AS scores) AS round;
WARNING: unrecognized node type: 110
WARNING: unrecognized node type: 110
WARNING: unrecognized node type: 110
WARNING: unrecognized node type: 110
scores | scores | scores | scores
--------+--------+--------+--------
10 | 12 | 14 | 16
(1 row)
This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.
"Arora, Nick" <NARORA@wsgr.com> writes: > We are using PostgreSQL 12.13. We are noticing that queries that attempt to retrieve an element of an array by specifyingits position cause a warning to be emitted: "WARNING: unrecognized node type: 110". I don't see that here, so I'm guessing it's coming from some extension. What extensions do you have loaded? Node type 110 would be T_SubscriptingRef in v12, which is a type name that didn't exist in earlier versions (it used to be called ArrayRef), so it's not very hard to believe that some extension missed out support for that type. But the only core-PG suspect is pg_stat_statements, and I can see that it does know that node type. regards, tom lane
Hello Tom,
Thanks for the information. Here are the extensions we are using:
uuid-ossp
pgcrypto
citext
btree_gin
The warnings did start emitting shortly after the installation of btree_gin, so it seems somewhat suspect
From: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thursday, May 18, 2023 at 11:30 AM
To: Arora, Nick <NARORA@wsgr.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: Unrecognized Node Type Warning
EXT - tgl@sss.pgh.pa.us
"Arora, Nick" <NARORA@wsgr.com> writes:
> We are using PostgreSQL 12.13. We are noticing that queries that attempt to retrieve an element of an array by specifying its position cause a warning to be emitted: "WARNING: unrecognized node type: 110".
I don't see that here, so I'm guessing it's coming from some extension.
What extensions do you have loaded?
Node type 110 would be T_SubscriptingRef in v12, which is a type name
that didn't exist in earlier versions (it used to be called ArrayRef),
so it's not very hard to believe that some extension missed out
support for that type. But the only core-PG suspect is
pg_stat_statements, and I can see that it does know that node type.
regards, tom lane
This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.
To provide more complete information:
Here is the name and version of each extension we have installed:
azure (1.0)
btree_gin (1.3)
citext (1.6)
pgcrypto (1.3)
plpgsql (1.0)
uuid-ossp (1.1)
This email and any attachments thereto may contain private, confidential, and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments thereto) by others is strictly prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete the original and any copies of this email and any attachments thereto.
"Arora, Nick" <NARORA@wsgr.com> writes: > Here is the name and version of each extension we have installed: > azure (1.0) > btree_gin (1.3) > citext (1.6) > pgcrypto (1.3) > plpgsql (1.0) > uuid-ossp (1.1) I'm quite certain that none of the last five are causing this, so you need to take it up with whoever provides "azure". regards, tom lane