* someday fix_expr_common might call it.
*/
void
-record_plan_type_dependency(PlannerInfo *root, Oid typeid)
+record_plan_type_dependency(PlannerInfo *root, Oid typid)
{
/*
* As in record_plan_function_dependency, ignore the possibility that
* someone would change a built-in domain.
*/
- if (typeid >= (Oid) FirstBootstrapObjectId)
+ if (typid >= (Oid) FirstBootstrapObjectId)
{
PlanInvalItem *inval_item = makeNode(PlanInvalItem);
*/
inval_item->cacheId = TYPEOID;
inval_item->hashValue = GetSysCacheHashValue1(TYPEOID,
- ObjectIdGetDatum(typeid));
+ ObjectIdGetDatum(typid));
root->glob->invalItems = lappend(root->glob->invalItems, inval_item);
}
int last_returned; /* Last comparison result (cache) */
bool cache_blob; /* Does buf2 contain strxfrm() blob, etc? */
bool collate_c;
- Oid typeid; /* Actual datatype (text/bpchar/bytea/name) */
+ Oid typid; /* Actual datatype (text/bpchar/bytea/name) */
hyperLogLogState abbr_card; /* Abbreviated key cardinality state */
hyperLogLogState full_card; /* Full key cardinality state */
double prop_card; /* Required cardinality proportion */
* this will not work with any other collation, though.
*/
void
-varstr_sortsupport(SortSupport ssup, Oid typeid, Oid collid)
+varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid)
{
bool abbreviate = ssup->abbreviate;
bool collate_c = false;
*/
if (lc_collate_is_c(collid))
{
- if (typeid == BPCHAROID)
+ if (typid == BPCHAROID)
ssup->comparator = bpcharfastcmp_c;
- else if (typeid == NAMEOID)
+ else if (typid == NAMEOID)
{
ssup->comparator = namefastcmp_c;
/* Not supporting abbreviation with type NAME, for now */
/*
* We use varlenafastcmp_locale except for type NAME.
*/
- if (typeid == NAMEOID)
+ if (typid == NAMEOID)
{
ssup->comparator = namefastcmp_locale;
/* Not supporting abbreviation with type NAME, for now */
*/
sss->cache_blob = true;
sss->collate_c = collate_c;
- sss->typeid = typeid;
+ sss->typid = typid;
ssup->ssup_extra = sss;
/*
return 0;
}
- if (sss->typeid == BPCHAROID)
+ if (sss->typid == BPCHAROID)
{
/* Get true number of bytes, ignoring trailing spaces */
len1 = bpchartruelen(a1p, len1);
len = VARSIZE_ANY_EXHDR(authoritative);
/* Get number of bytes, ignoring trailing spaces */
- if (sss->typeid == BPCHAROID)
+ if (sss->typid == BPCHAROID)
len = bpchartruelen(authoritative_data, len);
/*
*/
extern Plan *set_plan_references(PlannerInfo *root, Plan *plan);
extern void record_plan_function_dependency(PlannerInfo *root, Oid funcid);
-extern void record_plan_type_dependency(PlannerInfo *root, Oid typeid);
+extern void record_plan_type_dependency(PlannerInfo *root, Oid typid);
extern void extract_query_dependencies(Node *query,
List **relationOids,
List **invalItems,
#include "utils/sortsupport.h"
extern int varstr_cmp(const char *arg1, int len1, const char *arg2, int len2, Oid collid);
-extern void varstr_sortsupport(SortSupport ssup, Oid typeid, Oid collid);
+extern void varstr_sortsupport(SortSupport ssup, Oid typid, Oid collid);
extern int varstr_levenshtein(const char *source, int slen,
const char *target, int tlen,
int ins_c, int del_c, int sub_c,