PostGIS  3.3.9dev-r@@SVN_REVISION@@

◆ gserialized_gist_joinsel()

Datum gserialized_gist_joinsel ( PG_FUNCTION_ARGS  )

Definition at line 1331 of file gserialized_estimate.c.

1332 {
1333  PlannerInfo *root = (PlannerInfo *) PG_GETARG_POINTER(0);
1334  /* Oid operator = PG_GETARG_OID(1); */
1335  List *args = (List *) PG_GETARG_POINTER(2);
1336  JoinType jointype = (JoinType) PG_GETARG_INT16(3);
1337  int mode = PG_GETARG_INT32(4);
1338 
1339  POSTGIS_DEBUGF(2, "%s: entered function", __func__);
1340 
1341  /* Check length of args and punt on > 2 */
1342  if (list_length(args) != 2)
1343  {
1344  POSTGIS_DEBUGF(2, "%s: got nargs == %d", __func__, list_length(args));
1345  PG_RETURN_FLOAT8(DEFAULT_ND_JOINSEL);
1346  }
1347 
1348  /* Only respond to an inner join/unknown context join */
1349  if (jointype != JOIN_INNER)
1350  {
1351  POSTGIS_DEBUGF(1, "%s: jointype %d not supported", __func__, jointype);
1352  PG_RETURN_FLOAT8(DEFAULT_ND_JOINSEL);
1353  }
1354 
1355  PG_RETURN_FLOAT8(gserialized_joinsel_internal(root, args, jointype, mode));
1356 }
#define DEFAULT_ND_JOINSEL
float8 gserialized_joinsel_internal(PlannerInfo *root, List *args, JoinType jointype, int mode)
args
Definition: ovdump.py:45

References ovdump::args, DEFAULT_ND_JOINSEL, and gserialized_joinsel_internal().

Referenced by gserialized_gist_joinsel_2d(), and gserialized_gist_joinsel_nd().

Here is the call graph for this function:
Here is the caller graph for this function: