Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c2c0b31 commit a053437Copy full SHA for a053437
src/backend/utils/adt/selfuncs.c
@@ -15,7 +15,7 @@
15
*
16
17
* IDENTIFICATION
18
- * $PostgreSQL: pgsql/src/backend/utils/adt/selfuncs.c,v 1.222 2007/01/28 01:37:38 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/adt/selfuncs.c,v 1.223 2007/01/28 02:53:34 tgl Exp $
19
20
*-------------------------------------------------------------------------
21
*/
@@ -1698,6 +1698,9 @@ scalararraysel(PlannerInfo *root,
1698
int
1699
estimate_array_length(Node *arrayexpr)
1700
{
1701
+ /* look through any binary-compatible relabeling of arrayexpr */
1702
+ arrayexpr = strip_array_coercion(arrayexpr);
1703
+
1704
if (arrayexpr && IsA(arrayexpr, Const))
1705
1706
Datum arraydatum = ((Const *) arrayexpr)->constvalue;
0 commit comments