- Notifications
You must be signed in to change notification settings - Fork28
Commit852e322
committed
Adjust psql \d query to avoid use of @> operator.
It seems that the parray_gin extension has seen fit to introduce a"text[] @> text[]" operator, which conflicts with the core"anyarray @> anyarray" operator, causing ambiguous-operator failuresif the input arguments are coercible to text[] without being exactlythat type. This strikes me as a bad idea, but it's out there andpeople use it. As of v10, that breaks psql's query that tries totest "pg_statistic_ext.stxkind @> '{d}'", since stxkind is char[].The best workaround seems to be to avoid use of that operator.We can use a scalar-vs-array test "'d' = any(stxkind)" instead;that's arguably more readable anyway.Per report from Justin Pryzby. Backpatch to v10 where thisquery was added.Discussion:https://postgr.es/m/20171022181525.GA21884@telsasoft.com1 parent7a5f8de commit852e322
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2417 | 2417 |
| |
2418 | 2418 |
| |
2419 | 2419 |
| |
2420 |
| - | |
2421 |
| - | |
| 2420 | + | |
| 2421 | + | |
2422 | 2422 |
| |
2423 | 2423 |
| |
2424 | 2424 |
| |
|
0 commit comments
Comments
(0)