PostgreSQL Source Code  git master
isn.c File Reference
#include "postgres.h"
#include "EAN13.h"
#include "ISBN.h"
#include "ISMN.h"
#include "ISSN.h"
#include "UPC.h"
#include "fmgr.h"
#include "isn.h"
#include "utils/builtins.h"
Include dependency graph for isn.c:

Go to the source code of this file.

Macros

#define ISN_DEBUG   0
 
#define MAXEAN13LEN   18
 

Enumerations

enum  isn_type {
  INVALID , ANY , EAN13 , ISBN ,
  ISMN , ISSN , UPC
}
 

Functions

 pg_attribute_unused () static bool check_table(const char *(*TABLE)[2]
 
 if (TABLE==NULL||TABLE_index==NULL)
 
static unsigned dehyphenate (char *bufO, char *bufI)
 
static unsigned hyphenate (char *bufO, char *bufI, const char *(*TABLE)[2], const unsigned TABLE_index[10][2])
 
static unsigned weight_checkdig (char *isn, unsigned size)
 
static unsigned checkdig (char *num, unsigned size)
 
static bool ean2isn (ean13 ean, bool errorOK, ean13 *result, enum isn_type accept)
 
static void ean2ISBN (char *isn)
 
static void ean2ISMN (char *isn)
 
static void ean2ISSN (char *isn)
 
static void ean2UPC (char *isn)
 
static ean13 str2ean (const char *num)
 
static bool ean2string (ean13 ean, bool errorOK, char *result, bool shortType)
 
static bool string2ean (const char *str, struct Node *escontext, ean13 *result, enum isn_type accept)
 
void _PG_init (void)
 
 PG_FUNCTION_INFO_V1 (isn_out)
 
Datum isn_out (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (ean13_out)
 
Datum ean13_out (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (ean13_in)
 
Datum ean13_in (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (isbn_in)
 
Datum isbn_in (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (ismn_in)
 
Datum ismn_in (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (issn_in)
 
Datum issn_in (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (upc_in)
 
Datum upc_in (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (isbn_cast_from_ean13)
 
Datum isbn_cast_from_ean13 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (ismn_cast_from_ean13)
 
Datum ismn_cast_from_ean13 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (issn_cast_from_ean13)
 
Datum issn_cast_from_ean13 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (upc_cast_from_ean13)
 
Datum upc_cast_from_ean13 (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (is_valid)
 
Datum is_valid (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (make_valid)
 
Datum make_valid (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (accept_weak_input)
 
Datum accept_weak_input (PG_FUNCTION_ARGS)
 
 PG_FUNCTION_INFO_V1 (weak_input_status)
 
Datum weak_input_status (PG_FUNCTION_ARGS)
 

Variables

 PG_MODULE_MAGIC
 
static const char *const isn_names [] = {"EAN13/UPC/ISxN", "EAN13/UPC/ISxN", "EAN13", "ISBN", "ISMN", "ISSN", "UPC"}
 
static bool g_weak = false
 
const unsigned TABLE_index [10][2]
 
int a
 
int b
 
int x = 0
 
int y = -1
 
int i = 0
 
int j
 
int init = 0
 
return true
 
invalidtable __pad0__
 
invalidtable invalid table near
 
return false
 
invalidindex __pad1__
 
invalidindex index d is invalid
 

Macro Definition Documentation

◆ ISN_DEBUG

#define ISN_DEBUG   0

Definition at line 31 of file isn.c.

◆ MAXEAN13LEN

#define MAXEAN13LEN   18

Definition at line 34 of file isn.c.

Enumeration Type Documentation

◆ isn_type

enum isn_type
Enumerator
INVALID 
ANY 
EAN13 
ISBN 
ISMN 
ISSN 
UPC 

Definition at line 36 of file isn.c.

37 {
39 };
@ ISBN
Definition: isn.c:38
@ EAN13
Definition: isn.c:38
@ ISMN
Definition: isn.c:38
@ ANY
Definition: isn.c:38
@ UPC
Definition: isn.c:38
@ ISSN
Definition: isn.c:38
@ INVALID
Definition: isn.c:38

Function Documentation

◆ _PG_init()

void _PG_init ( void  )

Definition at line 918 of file isn.c.

919 {
920  if (ISN_DEBUG)
921  {
922  if (!check_table(EAN13_range, EAN13_index))
923  elog(ERROR, "EAN13 failed check");
924  if (!check_table(ISBN_range, ISBN_index))
925  elog(ERROR, "ISBN failed check");
926  if (!check_table(ISMN_range, ISMN_index))
927  elog(ERROR, "ISMN failed check");
928  if (!check_table(ISSN_range, ISSN_index))
929  elog(ERROR, "ISSN failed check");
930  if (!check_table(UPC_range, UPC_index))
931  elog(ERROR, "UPC failed check");
932  }
933 }
const unsigned EAN13_index[10][2]
Definition: EAN13.h:14
const char * EAN13_range[][2]
Definition: EAN13.h:26
const char * ISBN_range[][2]
Definition: ISBN.h:50
const unsigned ISBN_index[10][2]
Definition: ISBN.h:37
const char * ISMN_range[][2]
Definition: ISMN.h:45
const unsigned ISMN_index[10][2]
Definition: ISMN.h:33
const unsigned ISSN_index[10][2]
Definition: ISSN.h:34
const char * ISSN_range[][2]
Definition: ISSN.h:46
const unsigned UPC_index[10][2]
Definition: UPC.h:14
const char * UPC_range[][2]
Definition: UPC.h:26
#define ERROR
Definition: elog.h:39
#define elog(elevel,...)
Definition: elog.h:224
#define ISN_DEBUG
Definition: isn.c:31

References EAN13_index, EAN13_range, elog, ERROR, ISBN_index, ISBN_range, ISMN_index, ISMN_range, ISN_DEBUG, ISSN_index, ISSN_range, UPC_index, and UPC_range.

◆ accept_weak_input()

Datum accept_weak_input ( PG_FUNCTION_ARGS  )

Definition at line 1117 of file isn.c.

1118 {
1119 #ifdef ISN_WEAK_MODE
1120  g_weak = PG_GETARG_BOOL(0);
1121 #else
1122  /* function has no effect */
1123 #endif /* ISN_WEAK_MODE */
1125 }
#define PG_GETARG_BOOL(n)
Definition: fmgr.h:274
#define PG_RETURN_BOOL(x)
Definition: fmgr.h:359
static bool g_weak
Definition: isn.c:43

References g_weak, PG_GETARG_BOOL, and PG_RETURN_BOOL.

◆ checkdig()

static unsigned checkdig ( char *  num,
unsigned  size 
)
static

Definition at line 304 of file isn.c.

305 {
306  unsigned check = 0,
307  check3 = 0;
308  unsigned pos = 0;
309 
310  if (*num == 'M')
311  { /* ISMN start with 'M' */
312  check3 = 3;
313  pos = 1;
314  }
315  while (*num && size > 1)
316  {
317  if (isdigit((unsigned char) *num))
318  {
319  if (pos++ % 2)
320  check3 += *num - '0';
321  else
322  check += *num - '0';
323  size--;
324  }
325  num++;
326  }
327  check = (check + 3 * check3) % 10;
328  if (check != 0)
329  check = 10 - check;
330  return check;
331 }
static pg_noinline void Size size
Definition: slab.c:607

References size.

Referenced by string2ean().

◆ dehyphenate()

static unsigned dehyphenate ( char *  bufO,
char *  bufI 
)
static

Definition at line 143 of file isn.c.

144 {
145  unsigned ret = 0;
146 
147  while (*bufI)
148  {
149  if (isdigit((unsigned char) *bufI))
150  {
151  *bufO++ = *bufI;
152  ret++;
153  }
154  bufI++;
155  }
156  *bufO = '\0';
157  return ret;
158 }

Referenced by ean2UPC().

◆ ean13_in()

Datum ean13_in ( PG_FUNCTION_ARGS  )

Definition at line 971 of file isn.c.

972 {
973  const char *str = PG_GETARG_CSTRING(0);
974  ean13 result;
975 
976  if (!string2ean(str, fcinfo->context, &result, EAN13))
977  PG_RETURN_NULL();
978  PG_RETURN_EAN13(result);
979 }
#define PG_GETARG_CSTRING(n)
Definition: fmgr.h:277
#define PG_RETURN_NULL()
Definition: fmgr.h:345
static bool string2ean(const char *str, struct Node *escontext, ean13 *result, enum isn_type accept)
Definition: isn.c:685
uint64 ean13
Definition: isn.h:26
#define PG_RETURN_EAN13(x)
Definition: isn.h:31

References EAN13, PG_GETARG_CSTRING, PG_RETURN_EAN13, PG_RETURN_NULL, generate_unaccent_rules::str, and string2ean().

◆ ean13_out()

Datum ean13_out ( PG_FUNCTION_ARGS  )

Definition at line 955 of file isn.c.

956 {
958  char *result;
959  char buf[MAXEAN13LEN + 1];
960 
961  (void) ean2string(val, false, buf, false);
962 
963  result = pstrdup(buf);
964  PG_RETURN_CSTRING(result);
965 }
#define PG_RETURN_CSTRING(x)
Definition: fmgr.h:362
long val
Definition: informix.c:664
static bool ean2string(ean13 ean, bool errorOK, char *result, bool shortType)
Definition: isn.c:533
#define MAXEAN13LEN
Definition: isn.c:34
#define PG_GETARG_EAN13(n)
Definition: isn.h:30
char * pstrdup(const char *in)
Definition: mcxt.c:1683
static char * buf
Definition: pg_test_fsync.c:73

References buf, ean2string(), MAXEAN13LEN, PG_GETARG_EAN13, PG_RETURN_CSTRING, pstrdup(), and val.

◆ ean2ISBN()

static void ean2ISBN ( char *  isn)
inlinestatic

Definition at line 443 of file isn.c.

444 {
445  char *aux;
446  unsigned check;
447 
448  /*
449  * The number should come in this format: 978-0-000-00000-0 or may be an
450  * ISBN-13 number, 979-..., which does not have a short representation. Do
451  * the short output version if possible.
452  */
453  if (strncmp("978-", isn, 4) == 0)
454  {
455  /* Strip the first part and calculate the new check digit */
456  hyphenate(isn, isn + 4, NULL, NULL);
457  check = weight_checkdig(isn, 10);
458  aux = strchr(isn, '\0');
459  while (!isdigit((unsigned char) *--aux));
460  if (check == 10)
461  *aux = 'X';
462  else
463  *aux = check + '0';
464  }
465 }
static unsigned hyphenate(char *bufO, char *bufI, const char *(*TABLE)[2], const unsigned TABLE_index[10][2])
Definition: isn.c:168
static unsigned weight_checkdig(char *isn, unsigned size)
Definition: isn.c:278

References hyphenate(), and weight_checkdig().

Referenced by ean2string().

◆ ean2ISMN()

static void ean2ISMN ( char *  isn)
inlinestatic

Definition at line 468 of file isn.c.

469 {
470  /* the number should come in this format: 979-0-000-00000-0 */
471  /* Just strip the first part and change the first digit ('0') to 'M' */
472  hyphenate(isn, isn + 4, NULL, NULL);
473  isn[0] = 'M';
474 }

References hyphenate().

Referenced by ean2string().

◆ ean2isn()

static bool ean2isn ( ean13  ean,
bool  errorOK,
ean13 result,
enum isn_type  accept 
)
static

Definition at line 341 of file isn.c.

342 {
343  enum isn_type type = INVALID;
344 
345  char buf[MAXEAN13LEN + 1];
346  char *aux;
347  unsigned digval;
348  unsigned search;
349  ean13 ret = ean;
350 
351  ean >>= 1;
352  /* verify it's in the EAN13 range */
353  if (ean > UINT64CONST(9999999999999))
354  goto eantoobig;
355 
356  /* convert the number */
357  search = 0;
358  aux = buf + 13;
359  *aux = '\0'; /* terminate string; aux points to last digit */
360  do
361  {
362  digval = (unsigned) (ean % 10); /* get the decimal value */
363  ean /= 10; /* get next digit */
364  *--aux = (char) (digval + '0'); /* convert to ascii and store */
365  } while (ean && search++ < 12);
366  while (search++ < 12)
367  *--aux = '0'; /* fill the remaining EAN13 with '0' */
368 
369  /* find out the data type: */
370  if (strncmp("978", buf, 3) == 0)
371  { /* ISBN */
372  type = ISBN;
373  }
374  else if (strncmp("977", buf, 3) == 0)
375  { /* ISSN */
376  type = ISSN;
377  }
378  else if (strncmp("9790", buf, 4) == 0)
379  { /* ISMN */
380  type = ISMN;
381  }
382  else if (strncmp("979", buf, 3) == 0)
383  { /* ISBN-13 */
384  type = ISBN;
385  }
386  else if (*buf == '0')
387  { /* UPC */
388  type = UPC;
389  }
390  else
391  {
392  type = EAN13;
393  }
394  if (accept != ANY && accept != EAN13 && accept != type)
395  goto eanwrongtype;
396 
397  *result = ret;
398  return true;
399 
400 eanwrongtype:
401  if (!errorOK)
402  {
403  if (type != EAN13)
404  {
405  ereport(ERROR,
406  (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
407  errmsg("cannot cast EAN13(%s) to %s for number: \"%s\"",
409  }
410  else
411  {
412  ereport(ERROR,
413  (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
414  errmsg("cannot cast %s to %s for number: \"%s\"",
416  }
417  }
418  return false;
419 
420 eantoobig:
421  if (!errorOK)
422  {
423  char eanbuf[64];
424 
425  /*
426  * Format the number separately to keep the machine-dependent format
427  * code out of the translatable message text
428  */
429  snprintf(eanbuf, sizeof(eanbuf), EAN13_FORMAT, ean);
430  ereport(ERROR,
431  (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
432  errmsg("value \"%s\" is out of range for %s type",
433  eanbuf, isn_names[type])));
434  }
435  return false;
436 }
int errcode(int sqlerrcode)
Definition: elog.c:859
int errmsg(const char *fmt,...)
Definition: elog.c:1072
#define ereport(elevel,...)
Definition: elog.h:149
static const char *const isn_names[]
Definition: isn.c:41
isn_type
Definition: isn.c:37
#define EAN13_FORMAT
Definition: isn.h:28
#define snprintf
Definition: port.h:238
const char * type
#define accept(s, addr, addrlen)
Definition: win32_port.h:493

References accept, ANY, buf, EAN13, EAN13_FORMAT, ereport, errcode(), errmsg(), ERROR, INVALID, ISBN, ISMN, isn_names, ISSN, MAXEAN13LEN, snprintf, type, and UPC.

Referenced by isbn_cast_from_ean13(), ismn_cast_from_ean13(), issn_cast_from_ean13(), and upc_cast_from_ean13().

◆ ean2ISSN()

static void ean2ISSN ( char *  isn)
inlinestatic

Definition at line 477 of file isn.c.

478 {
479  unsigned check;
480 
481  /* the number should come in this format: 977-0000-000-00-0 */
482  /* Strip the first part, crop, and calculate the new check digit */
483  hyphenate(isn, isn + 4, NULL, NULL);
484  check = weight_checkdig(isn, 8);
485  if (check == 10)
486  isn[8] = 'X';
487  else
488  isn[8] = check + '0';
489  isn[9] = '\0';
490 }

References hyphenate(), and weight_checkdig().

Referenced by ean2string().

◆ ean2string()

static bool ean2string ( ean13  ean,
bool  errorOK,
char *  result,
bool  shortType 
)
static

Definition at line 533 of file isn.c.

534 {
535  const char *(*TABLE)[2];
536  const unsigned (*TABLE_index)[2];
537  enum isn_type type = INVALID;
538 
539  char *aux;
540  unsigned digval;
541  unsigned search;
542  char valid = '\0'; /* was the number initially written with a
543  * valid check digit? */
544 
546 
547  if ((ean & 1) != 0)
548  valid = '!';
549  ean >>= 1;
550  /* verify it's in the EAN13 range */
551  if (ean > UINT64CONST(9999999999999))
552  goto eantoobig;
553 
554  /* convert the number */
555  search = 0;
556  aux = result + MAXEAN13LEN;
557  *aux = '\0'; /* terminate string; aux points to last digit */
558  *--aux = valid; /* append '!' for numbers with invalid but
559  * corrected check digit */
560  do
561  {
562  digval = (unsigned) (ean % 10); /* get the decimal value */
563  ean /= 10; /* get next digit */
564  *--aux = (char) (digval + '0'); /* convert to ascii and store */
565  if (search == 0)
566  *--aux = '-'; /* the check digit is always there */
567  } while (ean && search++ < 13);
568  while (search++ < 13)
569  *--aux = '0'; /* fill the remaining EAN13 with '0' */
570 
571  /* The string should be in this form: ???DDDDDDDDDDDD-D" */
572  search = hyphenate(result, result + 3, EAN13_range, EAN13_index);
573 
574  /* verify it's a logically valid EAN13 */
575  if (search == 0)
576  {
577  search = hyphenate(result, result + 3, NULL, NULL);
578  goto okay;
579  }
580 
581  /* find out what type of hyphenation is needed: */
582  if (strncmp("978-", result, search) == 0)
583  { /* ISBN -13 978-range */
584  /* The string should be in this form: 978-??000000000-0" */
585  type = ISBN;
586  TABLE = ISBN_range;
588  }
589  else if (strncmp("977-", result, search) == 0)
590  { /* ISSN */
591  /* The string should be in this form: 977-??000000000-0" */
592  type = ISSN;
593  TABLE = ISSN_range;
595  }
596  else if (strncmp("979-0", result, search + 1) == 0)
597  { /* ISMN */
598  /* The string should be in this form: 979-0?000000000-0" */
599  type = ISMN;
600  TABLE = ISMN_range;
602  }
603  else if (strncmp("979-", result, search) == 0)
604  { /* ISBN-13 979-range */
605  /* The string should be in this form: 979-??000000000-0" */
606  type = ISBN;
607  TABLE = ISBN_range_new;
609  }
610  else if (*result == '0')
611  { /* UPC */
612  /* The string should be in this form: 000-00000000000-0" */
613  type = UPC;
614  TABLE = UPC_range;
616  }
617  else
618  {
619  type = EAN13;
620  TABLE = NULL;
621  TABLE_index = NULL;
622  }
623 
624  /* verify it's a logically valid EAN13/UPC/ISxN */
625  digval = search;
626  search = hyphenate(result + digval, result + digval + 2, TABLE, TABLE_index);
627 
628  /* verify it's a valid EAN13 */
629  if (search == 0)
630  {
631  search = hyphenate(result + digval, result + digval + 2, NULL, NULL);
632  goto okay;
633  }
634 
635 okay:
636  /* convert to the old short type: */
637  if (shortType)
638  switch (type)
639  {
640  case ISBN:
641  ean2ISBN(result);
642  break;
643  case ISMN:
644  ean2ISMN(result);
645  break;
646  case ISSN:
647  ean2ISSN(result);
648  break;
649  case UPC:
650  ean2UPC(result);
651  break;
652  default:
653  break;
654  }
655  return true;
656 
657 eantoobig:
658  if (!errorOK)
659  {
660  char eanbuf[64];
661 
662  /*
663  * Format the number separately to keep the machine-dependent format
664  * code out of the translatable message text
665  */
666  snprintf(eanbuf, sizeof(eanbuf), EAN13_FORMAT, ean);
667  ereport(ERROR,
668  (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
669  errmsg("value \"%s\" is out of range for %s type",
670  eanbuf, isn_names[type])));
671  }
672  return false;
673 }
const unsigned ISBN_index_new[10][2]
Definition: ISBN.h:970
const char * ISBN_range_new[][2]
Definition: ISBN.h:983
static void ean2ISBN(char *isn)
Definition: isn.c:443
const unsigned TABLE_index[10][2]
Definition: isn.c:66
static void ean2UPC(char *isn)
Definition: isn.c:493
static void ean2ISMN(char *isn)
Definition: isn.c:468
static void ean2ISSN(char *isn)
Definition: isn.c:477

References EAN13, EAN13_FORMAT, EAN13_index, EAN13_range, ean2ISBN(), ean2ISMN(), ean2ISSN(), ean2UPC(), ereport, errcode(), errmsg(), ERROR, hyphenate(), INVALID, ISBN, ISBN_index, ISBN_index_new, ISBN_range, ISBN_range_new, ISMN, ISMN_index, ISMN_range, isn_names, ISSN, ISSN_index, ISSN_range, MAXEAN13LEN, snprintf, TABLE_index, type, UPC, UPC_index, and UPC_range.

Referenced by ean13_out(), and isn_out().

◆ ean2UPC()

static void ean2UPC ( char *  isn)
inlinestatic

Definition at line 493 of file isn.c.

494 {
495  /* the number should come in this format: 000-000000000-0 */
496  /* Strip the first part, crop, and dehyphenate */
497  dehyphenate(isn, isn + 1);
498  isn[12] = '\0';
499 }
static unsigned dehyphenate(char *bufO, char *bufI)
Definition: isn.c:143

References dehyphenate().

Referenced by ean2string().

◆ hyphenate()

static unsigned hyphenate ( char *  bufO,
char *  bufI,
const char *(*)  TABLE[2],
const unsigned  TABLE_index[10][2] 
)
static

Definition at line 168 of file isn.c.

169 {
170  unsigned ret = 0;
171  const char *ean_aux1,
172  *ean_aux2,
173  *ean_p;
174  char *firstdig,
175  *aux1,
176  *aux2;
177  unsigned search,
178  upper,
179  lower,
180  step;
181  bool ean_in1,
182  ean_in2;
183 
184  /* just compress the string if no further hyphenation is required */
185  if (TABLE == NULL || TABLE_index == NULL)
186  {
187  while (*bufI)
188  {
189  *bufO++ = *bufI++;
190  ret++;
191  }
192  *bufO = '\0';
193  return (ret + 1);
194  }
195 
196  /* add remaining hyphenations */
197 
198  search = *bufI - '0';
199  upper = lower = TABLE_index[search][0];
200  upper += TABLE_index[search][1];
201  lower--;
202 
203  step = (upper - lower) / 2;
204  if (step == 0)
205  return 0;
206  search = lower + step;
207 
208  firstdig = bufI;
209  ean_in1 = ean_in2 = false;
210  ean_aux1 = TABLE[search][0];
211  ean_aux2 = TABLE[search][1];
212  do
213  {
214  if ((ean_in1 || *firstdig >= *ean_aux1) && (ean_in2 || *firstdig <= *ean_aux2))
215  {
216  if (*firstdig > *ean_aux1)
217  ean_in1 = true;
218  if (*firstdig < *ean_aux2)
219  ean_in2 = true;
220  if (ean_in1 && ean_in2)
221  break;
222 
223  firstdig++, ean_aux1++, ean_aux2++;
224  if (!(*ean_aux1 && *ean_aux2 && *firstdig))
225  break;
226  if (!isdigit((unsigned char) *ean_aux1))
227  ean_aux1++, ean_aux2++;
228  }
229  else
230  {
231  /*
232  * check in what direction we should go and move the pointer
233  * accordingly
234  */
235  if (*firstdig < *ean_aux1 && !ean_in1)
236  upper = search;
237  else
238  lower = search;
239 
240  step = (upper - lower) / 2;
241  search = lower + step;
242 
243  /* Initialize stuff again: */
244  firstdig = bufI;
245  ean_in1 = ean_in2 = false;
246  ean_aux1 = TABLE[search][0];
247  ean_aux2 = TABLE[search][1];
248  }
249  } while (step);
250 
251  if (step)
252  {
253  aux1 = bufO;
254  aux2 = bufI;
255  ean_p = TABLE[search][0];
256  while (*ean_p && *aux2)
257  {
258  if (*ean_p++ != '-')
259  *aux1++ = *aux2++;
260  else
261  *aux1++ = '-';
262  ret++;
263  }
264  *aux1++ = '-';
265  *aux1 = *aux2; /* add a lookahead char */
266  return (ret + 1);
267  }
268  return ret;
269 }
Datum lower(PG_FUNCTION_ARGS)
Definition: oracle_compat.c:49
Datum upper(PG_FUNCTION_ARGS)
Definition: oracle_compat.c:80

References lower(), TABLE_index, and upper().

Referenced by ean2ISBN(), ean2ISMN(), ean2ISSN(), and ean2string().

◆ if()

if ( TABLE  = = NULL || TABLE_index == NULL)

Definition at line 77 of file isn.c.

81  {
82  aux1 = TABLE[i][0];
83  aux2 = TABLE[i][1];
84 
85  /* must always start with a digit: */
86  if (!isdigit((unsigned char) *aux1) || !isdigit((unsigned char) *aux2))
87  goto invalidtable;
88  a = *aux1 - '0';
89  b = *aux2 - '0';
90 
91  /* must always have the same format and length: */
92  while (*aux1 && *aux2)
93  {
94  if (!(isdigit((unsigned char) *aux1) &&
95  isdigit((unsigned char) *aux2)) &&
96  (*aux1 != *aux2 || *aux1 != '-'))
97  goto invalidtable;
98  aux1++;
99  aux2++;
100  }
101  if (*aux1 != *aux2)
102  goto invalidtable;
103 
104  /* found a new range */
105  if (a > y)
106  {
107  /* check current range in the index: */
108  for (j = x; j <= y; j++)
109  {
110  if (TABLE_index[j][0] != init)
111  goto invalidindex;
112  if (TABLE_index[j][1] != i - init)
113  goto invalidindex;
114  }
115  init = i;
116  x = a;
117  }
118 
119  /* Always get the new limit */
120  y = b;
121  if (y < x)
122  goto invalidtable;
123  i++;
124  }
int y
Definition: isn.c:72
int b
Definition: isn.c:70
int x
Definition: isn.c:71
int init
Definition: isn.c:75
int a
Definition: isn.c:69
int j
Definition: isn.c:74
int i
Definition: isn.c:73

References a, b, i, init, j, TABLE_index, x, and y.

Referenced by _bt_check_unique(), _bt_deltasortsplits(), _bt_next(), _bt_parallel_done(), _bt_preprocess_keys(), _bt_readnextpage(), _Clone(), _CloseArchive(), _EndData(), _EndLO(), _EndLOs(), _hash_next(), _hash_readnext(), _hash_readprev(), _PrepParallelRestore(), _PrintExtraToc(), _PrintFileData(), _PrintTocData(), _ReadBuf(), _ReadExtraToc(), _ReopenArchive(), _SPI_execute_plan(), _StartLO(), _tarAddFile(), _WriteBuf(), _WriteByte(), _WriteData(), _WriteExtraToc(), add_paths_to_grouping_rel(), addRangeTableEntryForCTE(), AggGetAggref(), AggStateIsShared(), ahwrite(), allocarc(), allocateReloptStruct(), AlterSubscription(), analyzeCTE(), apply_projection_to_path(), are_peers(), array_agg_deserialize(), array_agg_serialize(), array_cmp(), array_eq(), array_fill_internal(), array_in(), array_out(), array_position_common(), array_positions(), array_recv(), array_replace_internal(), array_sample(), array_send(), array_shuffle(), array_subscript_assign(), array_subscript_assign_slice(), array_subscript_fetch_old(), array_subscript_fetch_old_slice(), array_to_text_internal(), arrayconst_next_fn(), arrayexpr_next_fn(), assign_param_for_placeholdervar(), assign_param_for_var(), ATExecAlterColumnType(), ATRewriteTables(), autoinc(), basic_archive_shutdown(), bbstreamer_gzip_decompressor_new(), bernoulli_nextsampletuple(), blendscan(), blgetbitmap(), BlockRefTableEntrySetLimitBlock(), bloom_get_procinfo(), BloomFillMetapage(), blrescan(), brin_page_items(), btendscan(), btgetbitmap(), btgettuple(), btrescan(), btrestrpos(), build_tlist_index_other_vars(), build_tlist_to_deparse(), BuildIndexInfo(), buildMatViewRefreshDependencies(), cash_out(), check_and_push_window_quals(), check_domain_for_new_tuple(), check_parameter_resolution_walker(), check_primary_key(), check_sql_fn_statements(), check_tuple_attribute(), check_variable_parameters(), checkAllTheSame(), close_none(), comparetup_cluster_tiebreak(), comparetup_heap_tiebreak(), compute_distinct_stats(), compute_function_attributes(), compute_range_stats(), concat_internal(), connectby_text(), connectby_text_serial(), ConstructTupleDescriptor(), CopyReadAttributesText(), count_rowexpr_columns(), create_bitmap_scan_plan(), create_cursor(), CreateRole(), CreateStatistics(), crosstab(), crosstab_hash(), cube_a_f8_f8(), currtid_for_view(), dblink_get_pkey(), deparse_lquery(), deparseAggref(), deparseFromExprForRel(), digest_finish(), digest_reset(), digest_update(), distribute_row_identity_vars(), domain_in(), domain_recv(), DoPortalRunFetch(), DropRelationsAllBuffers(), dumpConstraint(), ecpg_build_params(), enum_cmp_internal(), estimate_rel_size(), eval_const_expressions_mutator(), examine_simple_variable(), examine_variable(), exec_check_rw_parameter(), exec_simple_query(), exec_stmt_case(), exec_stmt_dynexecute(), exec_stmt_execsql(), exec_stmt_fetch(), ExecAlterDefaultPrivilegesStmt(), ExecAppendAsyncEventWait(), ExecBuildProjectionInfo(), ExecEndForeignScan(), ExecEvalJsonConstructor(), ExecForeignScan(), ExecGather(), ExecHashBuildSkewHash(), ExecInitMerge(), ExecInsert(), ExecReScanFunctionScan(), ExecSort(), execute_dml_stmt(), expand_indexqual_rowcompare(), expanded_record_set_tuple(), expandRecordVariable(), ExplainNode(), ExplainQuery(), exprCollation(), exprSetCollation(), exprType(), exprTypmod(), fetch_array_arg_replace_nulls(), FigureColnameInternal(), fileBeginForeignScan(), fileEndForeignScan(), fileGetForeignPaths(), final_cost_mergejoin(), finalize_grouping_exprs_walker(), find_forced_null_var(), fixed_paramref_hook(), fmgr_sql(), foreign_expr_walker(), foreign_grouping_ok(), foreign_join_ok(), freestate_cluster(), generateClonedIndexStmt(), GenericXLogFinish(), get_altertable_subcmdinfo(), get_cached_rowtype(), get_fn_opclass_options(), get_multirange_io_data(), get_name_for_var_field(), get_range_io_data(), get_rule_expr(), get_rule_sortgroupclause(), get_setop_query(), get_update_query_targetlist_def(), get_useful_pathkeys_for_relation(), get_windowclause_startup_tuples(), GetExistingLocalJoinPath(), getIthJsonbValueFromContainer(), GetMultiXactIdMembers(), getNextNearest(), getSide(), getTables(), GetWALBlockInfo(), gimme_gene(), ginCompressPostingList(), gininsert(), gist_page_items(), gist_page_items_bytea(), gistbuild(), gistgetbitmap(), gistgettuple(), gistindex_keytest(), gistinsert(), gistrescan(), gistSplit(), gtrgm_consistent(), gtrgm_distance(), has_fn_opclass_options(), hash_array(), hash_array_extended(), hash_record(), hash_record_extended(), hashendscan(), hashgettuple(), hashrescan(), heap_beginscan(), hstore_each(), hstore_from_record(), hstore_populate_record(), hstore_skeys(), hstore_svals(), ImportForeignSchema(), inclusion_get_procinfo(), inclusion_get_strategy_procinfo(), infer_arbiter_indexes(), InitMaterializedSRF(), inline_set_returning_function(), insert_username(), interval_to_char(), intset_flush_buffered_values(), intset_update_upper(), inv_getsize(), is_foreign_expr(), is_foreign_param(), is_foreign_pathkey(), IsBinaryTidClause(), IsCurrentOfClause(), IsPagerNeeded(), IsTidEqualAnyClause(), itm2interval(), itmin2interval(), json_lex(), json_object_keys(), jsonb_object_keys(), jsonb_subscript_assign(), jsonb_subscript_check_subscripts(), list_next_fn(), lo_initialize(), lo_manage(), ltree_concat(), main(), map_variable_attnos_mutator(), markNullableIfNeeded(), match_boolean_index_clause(), match_foreign_keys_to_quals(), match_opclause_to_indexcol(), match_rowcompare_to_indexcol(), match_saopclause_to_indexcol(), maybe_send_schema(), minmax_get_strategy_procinfo(), minmax_multi_get_procinfo(), minmax_multi_get_strategy_procinfo(), moddatetime(), multirange_get_typcache(), networkjoinsel_semi(), newstate(), nocachegetattr(), NormalizeSubWord(), optimize_window_clauses(), ordered_set_startup(), PageIndexTupleDelete(), PageIndexTupleDeleteNoCompact(), pagetable_allocate(), pagetable_free(), paraminfo_get_equal_hashops(), paramlist_param_ref(), parse_one_reloption(), parse_publication_options(), parseqatom(), pg_check_frozen(), pg_check_visible(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_get_catalog_foreign_keys(), pg_get_publication_tables(), pg_input_is_valid_common(), pg_partition_ancestors(), pg_partition_tree(), pg_regexec(), pg_regprefix(), pg_stat_get_progress_info(), pg_timezone_abbrevs(), pg_visibility_map_rel(), pg_visibility_rel(), pgoutput_message(), pgoutput_origin_filter(), pgp_armor_headers(), pgstat_relation_delete_pending_cb(), pgstat_report_analyze(), pgstat_report_vacuum(), pgstathashindex(), plperl_func_handler(), plperl_return_next_internal(), plperl_trigger_handler(), plpgsql_compile(), plpgsql_exec_function(), plpgsql_post_column_ref(), plpgsql_pre_column_ref(), plsample_trigger_handler(), pltcl_event_trigger_handler(), pltcl_func_handler(), pltcl_trigger_handler(), PLy_exec_function(), populate_recordset_worker(), postgresBeginDirectModify(), postgresBeginForeignScan(), postgresEndDirectModify(), postgresEndForeignModify(), postgresEndForeignScan(), postgresExecForeignBatchInsert(), postgresExecForeignInsert(), postgresGetForeignPlan(), postgresIterateDirectModify(), postgresIterateForeignScan(), postgresPlanDirectModify(), postgresReScanForeignScan(), pqAddTuple(), pr_comment(), prepTuplestoreResult(), printTableAddCell(), process_subquery_nestloop_params(), prs_process_call(), qual_is_pushdown_safe(), range_get_typcache(), raw_heap_insert(), read_dictionary(), read_none(), read_whole_file(), ReadNextXLogRecord(), ReadPageInternal(), reconsider_full_join_clause(), reconstruct_from_incremental_file(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), record_in(), record_out(), record_recv(), record_send(), regexp_instr(), regexp_matches(), regexp_split_to_table(), regexp_substr(), remove_unused_subquery_outputs(), remove_useless_groupby_columns(), RemoveUserMapping(), ReorderBufferSerializeChange(), ReplaceVarsFromTargetList_callback(), restriction_is_always_false(), restriction_is_always_true(), restriction_is_constant_false(), rewriteTargetListIU(), rewriteValuesRTE(), rfree(), ri_CheckTrigger(), RI_Initial_Check(), row_is_in_frame(), satisfies_hash_partition(), scram_init(), search_directory(), search_indexed_tlist_for_phv(), set_dummy_tlist_references(), set_output_count(), set_plan_refs(), set_subquery_pathlist(), set_subquery_size_estimates(), setFilePath(), show_agg_keys(), spg_box_quad_inner_consistent(), spggettuple(), SpGistUpdateMetaPage(), spgPrepareScanKeys(), spgrescan(), split_selfjoin_quals(), spool_tuples(), sql_exec_error_callback(), sql_fn_param_ref(), sql_fn_post_column_ref(), startScanKey(), statext_dependencies_build(), storeRow(), sts_parallel_scan_next(), SubTransSetParent(), suppress_redundant_updates_trigger(), system_nextsampletuple(), system_rows_nextsampleblock(), system_rows_nextsampletuple(), system_time_nextsampleblock(), system_time_nextsampletuple(), table_block_parallelscan_nextpage(), table_block_relation_estimate_size(), tarOpen(), test_regex(), thesaurus_lexize(), timetz_izone(), timetz_zone(), tlist_member_match_var(), transformCaseExpr(), transformTargetList(), trigger_return_old(), tsvector_unnest(), tsvector_update_trigger(), tt_process_call(), ttdummy(), TupleHashTableHash_internal(), tuplesort_getdatum(), tuplesort_putdatum(), tzparse(), unique_key_recheck(), update_frameheadpos(), update_frametailpos(), update_grouptailpos(), variable_coerce_param_hook(), variable_paramref_hook(), varstrfastcmp_locale(), verify_client_proof(), verify_heapam(), view_col_is_auto_updatable(), width_bucket_array(), WinRowsArePeers(), writetup_datum(), XLogDecodeNextRecord(), XLogInsertRecord(), XLogPrefetcherNextBlock(), and XLogRecordSaveFPWs().

◆ is_valid()

Datum is_valid ( PG_FUNCTION_ARGS  )

Definition at line 1092 of file isn.c.

1093 {
1094  ean13 val = PG_GETARG_EAN13(0);
1095 
1096  PG_RETURN_BOOL((val & 1) == 0);
1097 }

References PG_GETARG_EAN13, PG_RETURN_BOOL, and val.

◆ isbn_cast_from_ean13()

Datum isbn_cast_from_ean13 ( PG_FUNCTION_ARGS  )

Definition at line 1041 of file isn.c.

1042 {
1043  ean13 val = PG_GETARG_EAN13(0);
1044  ean13 result;
1045 
1046  (void) ean2isn(val, false, &result, ISBN);
1047 
1048  PG_RETURN_EAN13(result);
1049 }
static bool ean2isn(ean13 ean, bool errorOK, ean13 *result, enum isn_type accept)
Definition: isn.c:341

References ean2isn(), ISBN, PG_GETARG_EAN13, PG_RETURN_EAN13, and val.

◆ isbn_in()

Datum isbn_in ( PG_FUNCTION_ARGS  )

Definition at line 985 of file isn.c.

986 {
987  const char *str = PG_GETARG_CSTRING(0);
988  ean13 result;
989 
990  if (!string2ean(str, fcinfo->context, &result, ISBN))
991  PG_RETURN_NULL();
992  PG_RETURN_EAN13(result);
993 }

References ISBN, PG_GETARG_CSTRING, PG_RETURN_EAN13, PG_RETURN_NULL, generate_unaccent_rules::str, and string2ean().

◆ ismn_cast_from_ean13()

Datum ismn_cast_from_ean13 ( PG_FUNCTION_ARGS  )

Definition at line 1053 of file isn.c.

1054 {
1055  ean13 val = PG_GETARG_EAN13(0);
1056  ean13 result;
1057 
1058  (void) ean2isn(val, false, &result, ISMN);
1059 
1060  PG_RETURN_EAN13(result);
1061 }

References ean2isn(), ISMN, PG_GETARG_EAN13, PG_RETURN_EAN13, and val.

◆ ismn_in()

Datum ismn_in ( PG_FUNCTION_ARGS  )

Definition at line 999 of file isn.c.

1000 {
1001  const char *str = PG_GETARG_CSTRING(0);
1002  ean13 result;
1003 
1004  if (!string2ean(str, fcinfo->context, &result, ISMN))
1005  PG_RETURN_NULL();
1006  PG_RETURN_EAN13(result);
1007 }

References ISMN, PG_GETARG_CSTRING, PG_RETURN_EAN13, PG_RETURN_NULL, generate_unaccent_rules::str, and string2ean().

◆ isn_out()

Datum isn_out ( PG_FUNCTION_ARGS  )

Definition at line 939 of file isn.c.

940 {
942  char *result;
943  char buf[MAXEAN13LEN + 1];
944 
945  (void) ean2string(val, false, buf, true);
946 
947  result = pstrdup(buf);
948  PG_RETURN_CSTRING(result);
949 }

References buf, ean2string(), MAXEAN13LEN, PG_GETARG_EAN13, PG_RETURN_CSTRING, pstrdup(), and val.

◆ issn_cast_from_ean13()

Datum issn_cast_from_ean13 ( PG_FUNCTION_ARGS  )

Definition at line 1065 of file isn.c.

1066 {
1067  ean13 val = PG_GETARG_EAN13(0);
1068  ean13 result;
1069 
1070  (void) ean2isn(val, false, &result, ISSN);
1071 
1072  PG_RETURN_EAN13(result);
1073 }

References ean2isn(), ISSN, PG_GETARG_EAN13, PG_RETURN_EAN13, and val.

◆ issn_in()

Datum issn_in ( PG_FUNCTION_ARGS  )

Definition at line 1013 of file isn.c.

1014 {
1015  const char *str = PG_GETARG_CSTRING(0);
1016  ean13 result;
1017 
1018  if (!string2ean(str, fcinfo->context, &result, ISSN))
1019  PG_RETURN_NULL();
1020  PG_RETURN_EAN13(result);
1021 }

References ISSN, PG_GETARG_CSTRING, PG_RETURN_EAN13, PG_RETURN_NULL, generate_unaccent_rules::str, and string2ean().

◆ make_valid()

Datum make_valid ( PG_FUNCTION_ARGS  )

Definition at line 1103 of file isn.c.

1104 {
1105  ean13 val = PG_GETARG_EAN13(0);
1106 
1107  val &= ~((ean13) 1);
1109 }

References PG_GETARG_EAN13, PG_RETURN_EAN13, and val.

◆ pg_attribute_unused()

pg_attribute_unused ( ) )[2] const

◆ PG_FUNCTION_INFO_V1() [1/15]

PG_FUNCTION_INFO_V1 ( accept_weak_input  )

◆ PG_FUNCTION_INFO_V1() [2/15]

PG_FUNCTION_INFO_V1 ( ean13_in  )

◆ PG_FUNCTION_INFO_V1() [3/15]

PG_FUNCTION_INFO_V1 ( ean13_out  )

◆ PG_FUNCTION_INFO_V1() [4/15]

PG_FUNCTION_INFO_V1 ( is_valid  )

◆ PG_FUNCTION_INFO_V1() [5/15]

PG_FUNCTION_INFO_V1 ( isbn_cast_from_ean13  )

◆ PG_FUNCTION_INFO_V1() [6/15]

PG_FUNCTION_INFO_V1 ( isbn_in  )

◆ PG_FUNCTION_INFO_V1() [7/15]

PG_FUNCTION_INFO_V1 ( ismn_cast_from_ean13  )

◆ PG_FUNCTION_INFO_V1() [8/15]

PG_FUNCTION_INFO_V1 ( ismn_in  )

◆ PG_FUNCTION_INFO_V1() [9/15]

PG_FUNCTION_INFO_V1 ( isn_out  )

◆ PG_FUNCTION_INFO_V1() [10/15]

PG_FUNCTION_INFO_V1 ( issn_cast_from_ean13  )

◆ PG_FUNCTION_INFO_V1() [11/15]

PG_FUNCTION_INFO_V1 ( issn_in  )

◆ PG_FUNCTION_INFO_V1() [12/15]

PG_FUNCTION_INFO_V1 ( make_valid  )

◆ PG_FUNCTION_INFO_V1() [13/15]

PG_FUNCTION_INFO_V1 ( upc_cast_from_ean13  )

◆ PG_FUNCTION_INFO_V1() [14/15]

PG_FUNCTION_INFO_V1 ( upc_in  )

◆ PG_FUNCTION_INFO_V1() [15/15]

PG_FUNCTION_INFO_V1 ( weak_input_status  )

◆ str2ean()

static ean13 str2ean ( const char *  num)
static

Definition at line 509 of file isn.c.

510 {
511  ean13 ean = 0; /* current ean */
512 
513  while (*num)
514  {
515  if (isdigit((unsigned char) *num))
516  ean = 10 * ean + (*num - '0');
517  num++;
518  }
519  return (ean << 1); /* also give room to a flag */
520 }

Referenced by string2ean().

◆ string2ean()

static bool string2ean ( const char *  str,
struct Node escontext,
ean13 result,
enum isn_type  accept 
)
static

Definition at line 685 of file isn.c.

687 {
688  bool digit,
689  last;
690  char buf[17] = " ";
691  char *aux1 = buf + 3; /* leave space for the first part, in case
692  * it's needed */
693  const char *aux2 = str;
694  enum isn_type type = INVALID;
695  unsigned check = 0,
696  rcheck = (unsigned) -1;
697  unsigned length = 0;
698  bool magic = false,
699  valid = true;
700 
701  /* recognize and validate the number: */
702  while (*aux2 && length <= 13)
703  {
704  last = (*(aux2 + 1) == '!' || *(aux2 + 1) == '\0'); /* is the last character */
705  digit = (isdigit((unsigned char) *aux2) != 0); /* is current character
706  * a digit? */
707  if (*aux2 == '?' && last) /* automagically calculate check digit if
708  * it's '?' */
709  magic = digit = true;
710  if (length == 0 && (*aux2 == 'M' || *aux2 == 'm'))
711  {
712  /* only ISMN can be here */
713  if (type != INVALID)
714  goto eaninvalid;
715  type = ISMN;
716  *aux1++ = 'M';
717  length++;
718  }
719  else if (length == 7 && (digit || *aux2 == 'X' || *aux2 == 'x') && last)
720  {
721  /* only ISSN can be here */
722  if (type != INVALID)
723  goto eaninvalid;
724  type = ISSN;
725  *aux1++ = toupper((unsigned char) *aux2);
726  length++;
727  }
728  else if (length == 9 && (digit || *aux2 == 'X' || *aux2 == 'x') && last)
729  {
730  /* only ISBN and ISMN can be here */
731  if (type != INVALID && type != ISMN)
732  goto eaninvalid;
733  if (type == INVALID)
734  type = ISBN; /* ISMN must start with 'M' */
735  *aux1++ = toupper((unsigned char) *aux2);
736  length++;
737  }
738  else if (length == 11 && digit && last)
739  {
740  /* only UPC can be here */
741  if (type != INVALID)
742  goto eaninvalid;
743  type = UPC;
744  *aux1++ = *aux2;
745  length++;
746  }
747  else if (*aux2 == '-' || *aux2 == ' ')
748  {
749  /* skip, we could validate but I think it's worthless */
750  }
751  else if (*aux2 == '!' && *(aux2 + 1) == '\0')
752  {
753  /* the invalid check digit suffix was found, set it */
754  if (!magic)
755  valid = false;
756  magic = true;
757  }
758  else if (!digit)
759  {
760  goto eaninvalid;
761  }
762  else
763  {
764  *aux1++ = *aux2;
765  if (++length > 13)
766  goto eantoobig;
767  }
768  aux2++;
769  }
770  *aux1 = '\0'; /* terminate the string */
771 
772  /* find the current check digit value */
773  if (length == 13)
774  {
775  /* only EAN13 can be here */
776  if (type != INVALID)
777  goto eaninvalid;
778  type = EAN13;
779  check = buf[15] - '0';
780  }
781  else if (length == 12)
782  {
783  /* only UPC can be here */
784  if (type != UPC)
785  goto eaninvalid;
786  check = buf[14] - '0';
787  }
788  else if (length == 10)
789  {
790  if (type != ISBN && type != ISMN)
791  goto eaninvalid;
792  if (buf[12] == 'X')
793  check = 10;
794  else
795  check = buf[12] - '0';
796  }
797  else if (length == 8)
798  {
799  if (type != INVALID && type != ISSN)
800  goto eaninvalid;
801  type = ISSN;
802  if (buf[10] == 'X')
803  check = 10;
804  else
805  check = buf[10] - '0';
806  }
807  else
808  goto eaninvalid;
809 
810  if (type == INVALID)
811  goto eaninvalid;
812 
813  /* obtain the real check digit value, validate, and convert to ean13: */
814  if (accept == EAN13 && type != accept)
815  goto eanwrongtype;
816  if (accept != ANY && type != EAN13 && type != accept)
817  goto eanwrongtype;
818  switch (type)
819  {
820  case EAN13:
821  valid = (valid && ((rcheck = checkdig(buf + 3, 13)) == check || magic));
822  /* now get the subtype of EAN13: */
823  if (buf[3] == '0')
824  type = UPC;
825  else if (strncmp("977", buf + 3, 3) == 0)
826  type = ISSN;
827  else if (strncmp("978", buf + 3, 3) == 0)
828  type = ISBN;
829  else if (strncmp("9790", buf + 3, 4) == 0)
830  type = ISMN;
831  else if (strncmp("979", buf + 3, 3) == 0)
832  type = ISBN;
833  if (accept != EAN13 && accept != ANY && type != accept)
834  goto eanwrongtype;
835  break;
836  case ISMN:
837  memcpy(buf, "9790", 4); /* this isn't for sure yet, for now ISMN
838  * it's only 9790 */
839  valid = (valid && ((rcheck = checkdig(buf, 13)) == check || magic));
840  break;
841  case ISBN:
842  memcpy(buf, "978", 3);
843  valid = (valid && ((rcheck = weight_checkdig(buf + 3, 10)) == check || magic));
844  break;
845  case ISSN:
846  memcpy(buf + 10, "00", 2); /* append 00 as the normal issue
847  * publication code */
848  memcpy(buf, "977", 3);
849  valid = (valid && ((rcheck = weight_checkdig(buf + 3, 8)) == check || magic));
850  break;
851  case UPC:
852  buf[2] = '0';
853  valid = (valid && ((rcheck = checkdig(buf + 2, 13)) == check || magic));
854  default:
855  break;
856  }
857 
858  /* fix the check digit: */
859  for (aux1 = buf; *aux1 && *aux1 <= ' '; aux1++);
860  aux1[12] = checkdig(aux1, 13) + '0';
861  aux1[13] = '\0';
862 
863  if (!valid && !magic)
864  goto eanbadcheck;
865 
866  *result = str2ean(aux1);
867  *result |= valid ? 0 : 1;
868  return true;
869 
870 eanbadcheck:
871  if (g_weak)
872  { /* weak input mode is activated: */
873  /* set the "invalid-check-digit-on-input" flag */
874  *result = str2ean(aux1);
875  *result |= 1;
876  return true;
877  }
878 
879  if (rcheck == (unsigned) -1)
880  {
881  ereturn(escontext, false,
882  (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
883  errmsg("invalid %s number: \"%s\"",
884  isn_names[accept], str)));
885  }
886  else
887  {
888  ereturn(escontext, false,
889  (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
890  errmsg("invalid check digit for %s number: \"%s\", should be %c",
891  isn_names[accept], str, (rcheck == 10) ? ('X') : (rcheck + '0'))));
892  }
893 
894 eaninvalid:
895  ereturn(escontext, false,
896  (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
897  errmsg("invalid input syntax for %s number: \"%s\"",
898  isn_names[accept], str)));
899 
900 eanwrongtype:
901  ereturn(escontext, false,
902  (errcode(ERRCODE_INVALID_TEXT_REPRESENTATION),
903  errmsg("cannot cast %s to %s for number: \"%s\"",
905 
906 eantoobig:
907  ereturn(escontext, false,
908  (errcode(ERRCODE_NUMERIC_VALUE_OUT_OF_RANGE),
909  errmsg("value \"%s\" is out of range for %s type",
910  str, isn_names[accept])));
911 }
#define ereturn(context, dummy_value,...)
Definition: elog.h:276
static unsigned checkdig(char *num, unsigned size)
Definition: isn.c:304
static ean13 str2ean(const char *num)
Definition: isn.c:509

References accept, ANY, buf, checkdig(), EAN13, ereturn, errcode(), errmsg(), g_weak, INVALID, ISBN, ISMN, isn_names, ISSN, generate_unaccent_rules::str, str2ean(), type, UPC, and weight_checkdig().

Referenced by ean13_in(), isbn_in(), ismn_in(), issn_in(), and upc_in().

◆ upc_cast_from_ean13()

Datum upc_cast_from_ean13 ( PG_FUNCTION_ARGS  )

Definition at line 1077 of file isn.c.

1078 {
1079  ean13 val = PG_GETARG_EAN13(0);
1080  ean13 result;
1081 
1082  (void) ean2isn(val, false, &result, UPC);
1083 
1084  PG_RETURN_EAN13(result);
1085 }

References ean2isn(), PG_GETARG_EAN13, PG_RETURN_EAN13, UPC, and val.

◆ upc_in()

Datum upc_in ( PG_FUNCTION_ARGS  )

Definition at line 1027 of file isn.c.

1028 {
1029  const char *str = PG_GETARG_CSTRING(0);
1030  ean13 result;
1031 
1032  if (!string2ean(str, fcinfo->context, &result, UPC))
1033  PG_RETURN_NULL();
1034  PG_RETURN_EAN13(result);
1035 }

References PG_GETARG_CSTRING, PG_RETURN_EAN13, PG_RETURN_NULL, generate_unaccent_rules::str, string2ean(), and UPC.

◆ weak_input_status()

Datum weak_input_status ( PG_FUNCTION_ARGS  )

Definition at line 1129 of file isn.c.

1130 {
1132 }

References g_weak, and PG_RETURN_BOOL.

◆ weight_checkdig()

static unsigned weight_checkdig ( char *  isn,
unsigned  size 
)
static

Definition at line 278 of file isn.c.

279 {
280  unsigned weight = 0;
281 
282  while (*isn && size > 1)
283  {
284  if (isdigit((unsigned char) *isn))
285  {
286  weight += size-- * (*isn - '0');
287  }
288  isn++;
289  }
290  weight = weight % 11;
291  if (weight != 0)
292  weight = 11 - weight;
293  return weight;
294 }

References size.

Referenced by ean2ISBN(), ean2ISSN(), and string2ean().

Variable Documentation

◆ __pad0__

invalidtable __pad0__

Definition at line 128 of file isn.c.

◆ __pad1__

invalidindex __pad1__

Definition at line 133 of file isn.c.

◆ a

int a

Definition at line 69 of file isn.c.

Referenced by _bt_compare_array_elements(), _bt_delitems_cmp(), _equalA_Const(), _equalBitmapset(), _equalConst(), _equalExtensibleNode(), _equalList(), _int_contains(), _int_inter(), _int_overlap(), _int_same(), _int_union(), _intbig_contains(), _intbig_overlap(), _lca(), _ltree_same(), _yconv(), abs_interval(), addressOK(), allocarc(), AlterFunction(), AlterSetting(), AlterType(), analyze(), append_startup_cost_compare(), append_total_cost_compare(), ApplySetting(), apw_compare_blockinfo(), array_iter_setup(), atcomp(), AttrDefaultCmp(), bitfromint4(), bitfromint8(), BlockRefTableComparator(), bms_add_member(), bms_add_members(), bms_add_range(), bms_compare(), bms_copy(), bms_del_member(), bms_del_members(), bms_difference(), bms_equal(), bms_free(), bms_get_singleton_member(), bms_hash_value(), bms_int_members(), bms_intersect(), bms_is_member(), bms_is_subset(), bms_join(), bms_member_index(), bms_membership(), bms_next_member(), bms_nonempty_difference(), bms_num_members(), bms_overlap(), bms_overlap_list(), bms_prev_member(), bms_replace_members(), bms_singleton_member(), bms_subset_compare(), bms_union(), bound_cmp(), box_distance(), breakconstraintloop(), brin_minmax_multi_distance_inet(), brin_minmax_multi_distance_macaddr(), brin_minmax_multi_distance_macaddr8(), brin_minmax_multi_summary_out(), brin_tuples_equal(), btboolcmp(), btcharcmp(), btint24cmp(), btint28cmp(), btint2cmp(), btint2fastcmp(), btint42cmp(), btint48cmp(), btint4cmp(), btint82cmp(), btint84cmp(), btint8cmp(), btint8fastcmp(), btoidcmp(), btoidfastcmp(), btoidvectorcmp(), buffer_cmp(), carc_cmp(), cash_dist(), changearcsource(), changearctarget(), chareqfast(), check_in_colors_match(), check_out_colors_match(), CheckConstraintCmp(), checkmatchall(), checkmatchall_recurse(), ckpt_buforder_comparator(), cleartraverse(), cloneouts(), clonesuccessorstates(), cmp_fxid(), cmp_lbestatus(), cmp_list_len_asc(), cmp_list_len_contents_asc(), cmp_lsn(), cmp_string(), cmpaliases(), cmpEntries(), cmpEntryAccumulator(), cmpLexeme(), cmpLexemeInfo(), cmpLexemeQ(), cmpNodePtr(), cmpOffsetNumbers(), cmpQTN(), cmpTheLexeme(), codepoint_range_cmp(), collectTSQueryValues(), colorchain(), colorcomplement(), combine(), common_prefix_cmp(), commonPrefix(), comp_location(), comp_trgm(), compact(), compare_block_numbers(), compare_datums_simple(), compare_distances(), compare_expanded_ranges(), compare_int(), compare_int16(), compare_mcvs(), compare_rows(), compare_scalars(), compare_scalars_simple(), compare_sort_item_count(), compare_syn(), compare_text_lexemes(), compare_val_int4(), compare_values(), comparecost(), compareDocR(), compareDoubles(), compareentry(), compareint(), compareJsonbContainers(), compareJsonbScalarValue(), compareNumeric(), comparePairs(), compareQueryOperand(), compareSyn(), CompareTSQ(), comparetup_cluster(), comparetup_cluster_tiebreak(), comparetup_datum(), comparetup_datum_tiebreak(), comparetup_heap(), comparetup_heap_tiebreak(), comparetup_index_brin(), comparetup_index_btree(), comparetup_index_btree_tiebreak(), comparetup_index_hash(), compareWalFileNames(), compareWORD(), compareWordEntryPos(), compASC(), compDESC(), complex_abs_cmp(), complex_abs_cmp_internal(), complex_abs_eq(), complex_abs_ge(), complex_abs_gt(), complex_abs_le(), complex_abs_lt(), complex_add(), constraints_equivalent(), convert_requires_to_datum(), copy_intArrayType(), copyins(), copyouts(), createarc(), cube_cmp(), cube_cmp_v0(), cube_contained(), cube_contains(), cube_contains_v0(), cube_distance(), cube_enlarge(), cube_eq(), cube_ge(), cube_gt(), cube_inter(), cube_le(), cube_lt(), cube_ne(), cube_overlap(), cube_overlap_v0(), cube_size(), cube_union(), cube_union_v0(), db_comparator(), dcs_cmp(), Decomp_hash_func(), DefineType(), deltraverse(), diag3(), diag4(), distance_chebyshev(), distance_taxicab(), dropstate(), dshash_memcmp(), dshash_strcmp(), duptraverse(), ECPGconnect(), emptyreachable(), enum_cmp(), enum_eq(), enum_ge(), enum_gt(), enum_larger(), enum_le(), enum_lt(), enum_ne(), enum_smaller(), equal(), equal_keys(), equalsJsonbScalarValue(), extension_config_remove(), file_sort_by_lsn(), final_filemap_cmp(), findarc(), findconstraintloop(), fixconstraintloops(), fixempties(), float4_cmp_internal(), float4_dist(), float8_cmp_internal(), float8_dist(), foreign_expr_walker(), FullTransactionIdNewer(), g_int_same(), g_intbig_same(), gbt_bitcmp(), gbt_biteq(), gbt_bitge(), gbt_bitgt(), gbt_bitle(), gbt_bitlt(), gbt_booleq(), gbt_boolge(), gbt_boolgt(), gbt_boolkey_cmp(), gbt_boolle(), gbt_boollt(), gbt_bpcharcmp(), gbt_bpchareq(), gbt_bpcharge(), gbt_bpchargt(), gbt_bpcharle(), gbt_bpcharlt(), gbt_byteacmp(), gbt_byteaeq(), gbt_byteage(), gbt_byteagt(), gbt_byteale(), gbt_bytealt(), gbt_cash_dist(), gbt_casheq(), gbt_cashge(), gbt_cashgt(), gbt_cashkey_cmp(), gbt_cashle(), gbt_cashlt(), gbt_dateeq(), gbt_datege(), gbt_dategt(), gbt_datekey_cmp(), gbt_datele(), gbt_datelt(), gbt_enumeq(), gbt_enumge(), gbt_enumgt(), gbt_enumkey_cmp(), gbt_enumle(), gbt_enumlt(), gbt_float4_dist(), gbt_float4eq(), gbt_float4ge(), gbt_float4gt(), gbt_float4key_cmp(), gbt_float4le(), gbt_float4lt(), gbt_float8_dist(), gbt_float8eq(), gbt_float8ge(), gbt_float8gt(), gbt_float8key_cmp(), gbt_float8le(), gbt_float8lt(), gbt_ineteq(), gbt_inetge(), gbt_inetgt(), gbt_inetkey_cmp(), gbt_inetle(), gbt_inetlt(), gbt_int2_dist(), gbt_int2eq(), gbt_int2ge(), gbt_int2gt(), gbt_int2key_cmp(), gbt_int2le(), gbt_int2lt(), gbt_int4_dist(), gbt_int4eq(), gbt_int4ge(), gbt_int4gt(), gbt_int4key_cmp(), gbt_int4le(), gbt_int4lt(), gbt_int8_dist(), gbt_int8eq(), gbt_int8ge(), gbt_int8gt(), gbt_int8key_cmp(), gbt_int8le(), gbt_int8lt(), gbt_intv_dist(), gbt_intveq(), gbt_intvge(), gbt_intvgt(), gbt_intvkey_cmp(), gbt_intvle(), gbt_intvlt(), gbt_macad8eq(), gbt_macad8ge(), gbt_macad8gt(), gbt_macad8key_cmp(), gbt_macad8le(), gbt_macad8lt(), gbt_macadeq(), gbt_macadge(), gbt_macadgt(), gbt_macadkey_cmp(), gbt_macadle(), gbt_macadlt(), gbt_num_same(), gbt_numeric_cmp(), gbt_numeric_eq(), gbt_numeric_ge(), gbt_numeric_gt(), gbt_numeric_le(), gbt_numeric_lt(), gbt_oid_dist(), gbt_oideq(), gbt_oidge(), gbt_oidgt(), gbt_oidkey_cmp(), gbt_oidle(), gbt_oidlt(), gbt_textcmp(), gbt_texteq(), gbt_textge(), gbt_textgt(), gbt_textle(), gbt_textlt(), gbt_time_dist(), gbt_timeeq(), gbt_timege(), gbt_timegt(), gbt_timekey_cmp(), gbt_timele(), gbt_timelt(), gbt_ts_dist(), gbt_tseq(), gbt_tsge(), gbt_tsgt(), gbt_tskey_cmp(), gbt_tsle(), gbt_tslt(), gbt_uuideq(), gbt_uuidge(), gbt_uuidgt(), gbt_uuidkey_cmp(), gbt_uuidle(), gbt_uuidlt(), gbt_vsrt_cmp(), gcd(), gdb_date_dist(), gensign(), get_b_utf8(), ghstore_same(), gin_btree_compare_prefix(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_enum_cmp(), gin_numeric_cmp(), ginCompareAttEntries(), ginCompareEntries(), ginCompareItemPointers(), ginMergeItemPointers(), gist_bbox_zorder_cmp(), gistKeyIsEQ(), gseg_picksplit_item_cmp(), gtrgm_same(), gtsquery_same(), gtsvector_same(), guc_var_compare(), GUCArrayAdd(), hasconstraintout(), hash_aclitem(), hash_aclitem_extended(), hash_bytes(), hash_bytes_extended(), hash_bytes_uint32(), hash_bytes_uint32_extended(), hash_combine(), hash_combine64(), hasnonemptyout(), heap_compare_slots(), heap_tuple_infomask_flags(), hemdist(), hemdistcache(), hemdistsign(), hstore_akeys(), hstore_avals(), hstoreArrayToPairs(), hstoreUniquePairs(), icount(), idx(), if(), inner_int_contains(), inner_int_inter(), inner_int_overlap(), inner_int_union(), int2_dist(), int2eqfast(), int4_dist(), int4eqfast(), int8_dist(), int_cmp(), intarray_add_elem(), intarray_concat_arrays(), intarray_del_elem(), intarray_match_first(), intarray_push_array(), intarray_push_elem(), internal_size(), interval_cmp_lower(), interval_cmp_upper(), intset_subtract(), intset_union_elem(), ipv4eq(), ipv6eq(), irbt_cmp(), is_alpha(), is_space(), isconstraintarc(), isort(), isort_cmp(), itemptr_comparator(), join_tsqueries(), jspGetArg(), jspGetLeftArg(), jspGetNext(), jspGetRightArg(), key_cmp(), lca(), lca_inner(), lengthCompareJsonbPair(), lengthCompareJsonbStringValue(), list_sort(), ListComparatorForWalSummaryFiles(), lowerit(), lseg_inside_poly(), ltree_addltree(), ltree_addtext(), ltree_compare(), ltree_concat(), ltree_index(), ltree_same(), ltree_strncasecmp(), ltree_textadd(), macaddr8_in(), macaddr_in(), main(), makeA_Expr(), makeAlias(), makesearch(), makesign(), makeSimpleA_Expr(), makeTSQuerySign(), map_multipart_sql_identifier_to_xml_name(), markcanreach(), markreachable(), mbms_add_member(), mbms_add_members(), mbms_int_members(), mbms_is_member(), mbms_overlap_sets(), merge(), mergeins(), MinXLogRecPtr(), moveins(), moveouts(), multi_sort_compare(), multi_sort_compare_dim(), multi_sort_compare_dims(), nameeqfast(), network_broadcast(), network_network(), newarc(), NFC_QC_hash_func(), NFKC_QC_hash_func(), nlevel(), NormalTransactionIdOlder(), numeric_is_less(), numeric_to_char(), numeric_to_number(), object_address_comparator(), oid_compare(), oid_dist(), oidvectoreqfast(), okcolors(), on_ppath(), optimizebracket(), pairingheap_GISTSearchItem_cmp(), pairingheap_SpGistSearchItem_cmp(), path_usage_comparator(), pct_info_cmp(), pg_add_s16_overflow(), pg_add_s32_overflow(), pg_add_s64_overflow(), pg_add_u16_overflow(), pg_add_u32_overflow(), pg_add_u64_overflow(), pg_cmp_s16(), pg_cmp_s32(), pg_cmp_s64(), pg_cmp_size(), pg_cmp_u16(), pg_cmp_u32(), pg_cmp_u64(), pg_comp_crc32c_sb8(), pg_extension_config_dump(), pg_get_functiondef(), pg_itoa(), pg_lltoa(), pg_lsn_cmp(), pg_ltoa(), pg_mul_s16_overflow(), pg_mul_s32_overflow(), pg_mul_s64_overflow(), pg_mul_u16_overflow(), pg_mul_u32_overflow(), pg_mul_u64_overflow(), pg_qsort_strcmp(), pg_settings_get_flags(), pg_size_bytes(), pg_sub_s16_overflow(), pg_sub_s32_overflow(), pg_sub_s64_overflow(), pg_sub_u16_overflow(), pg_sub_u32_overflow(), pg_sub_u64_overflow(), pg_ulltoa_n(), pg_ultoa_n(), pg_utf8_increment(), pg_utf8_islegal(), pg_visibility_tupdesc(), pgstat_cmp_hash_key(), pivotFieldCompare(), pull(), pullback(), push(), pushfwd(), qsort_partition_hbound_cmp(), qsort_partition_list_value_cmp(), qsort_partition_rbound_cmp(), qsort_tuple_int32_compare(), qsort_tuple_unsigned_compare(), qsortCompareItemPointers(), QTNEq(), range(), rankCompare(), ready_file_comparator(), Recomp_hash_func(), record_type_typmod_compare(), removeDontCares(), removetraverse(), ReorderBufferIterCompare(), reorderqueue_cmp(), resize_intArrayType(), resource_priority_cmp(), restrict_infos_logically_equal(), row_security_policy_cmp(), rt__int_size(), rt_box_union(), rt_cube_size(), rt_seg_size(), rule_cmp(), seg_cmp(), seg_contained(), seg_contains(), seg_inter(), seg_left(), seg_over_left(), seg_over_right(), seg_overlap(), seg_right(), seg_union(), self_join_candidates_cmp(), seq_search_ascii(), seq_search_localized(), sha1_step(), SHA256_Transform(), SHA512_Transform(), shared_dependency_comparator(), shared_record_table_compare(), shared_record_table_hash(), show_trgm(), silly_cmp_tsvector(), single_bound_cmp(), single_color_transition(), sort(), sort_asc(), sort_desc(), sort_item_compare(), sortins(), sortins_cmp(), sortouts(), sortouts_cmp(), spcachekey_equal(), standby_priority_comparator(), step_bsearch_cmp(), step_qsort_cmp(), subarray(), tbm_intersect(), tbm_union(), tbm_union_page(), test_dsa_basic(), test_dsa_resowners(), texteqfast(), tidcmp(), timestamp_fastcmp(), touched_lseg_inside_poly(), TransactionIdOlder(), transformAExprBetween(), transformAExprDistinct(), transformAExprIn(), transformAExprNullIf(), transformAExprOp(), transformAExprOpAll(), transformAExprOpAny(), transformArrayExpr(), transformBoolExpr(), transformExprRecurse(), treekey_cmp(), ts_ckpt_progress_comparator(), ts_dist(), ts_lexize(), tsCompareString(), tsquery_and(), tsquery_cmp(), tsquery_not(), tsquery_or(), tsquery_phrase_distance(), tstz_dist(), typesequiv(), umul128(), uncolorchain(), union_tuples(), uniq(), uniqueentry(), uniquePos(), uniqueWORD(), update_proconfig_value(), WordEntryCMP(), x_cmp(), xmin_cmp(), and y_cmp().

◆ b

int b

Definition at line 70 of file isn.c.

Referenced by _bt_compare_array_elements(), _bt_delitems_cmp(), _equalA_Const(), _equalBitmapset(), _equalConst(), _equalExtensibleNode(), _equalList(), _int_contains(), _int_inter(), _int_overlap(), _int_same(), _int_union(), _intbig_contains(), _intbig_overlap(), _ltree_same(), _WriteByte(), _yconv(), addWrd(), adjustBox(), append_startup_cost_compare(), append_total_cost_compare(), apw_compare_blockinfo(), atcomp(), AttrDefaultCmp(), avlAdjustBalance(), be_tls_get_peer_serial(), bitncmp(), BlockRefTableComparator(), bms_add_members(), bms_compare(), bms_del_members(), bms_difference(), bms_equal(), bms_int_members(), bms_intersect(), bms_is_subset(), bms_join(), bms_nonempty_difference(), bms_overlap(), bms_overlap_list(), bms_replace_members(), bms_subset_compare(), bms_union(), boolout(), bottomup_nblocksfavorable(), bottomup_sort_and_shrink(), bound_cmp(), box_distance(), brin_minmax_multi_distance_inet(), brin_minmax_multi_distance_macaddr(), brin_minmax_multi_distance_macaddr8(), brin_minmax_multi_summary_out(), brin_tuples_equal(), btboolcmp(), btcharcmp(), btint24cmp(), btint28cmp(), btint2cmp(), btint2fastcmp(), btint42cmp(), btint48cmp(), btint4cmp(), btint82cmp(), btint84cmp(), btint8cmp(), btint8fastcmp(), btoidcmp(), btoidfastcmp(), btoidvectorcmp(), buffer_cmp(), build_EvalXFuncInt(), BuildV1Call(), bytesToHex(), carc_cmp(), cash_dist(), CATALOG(), chareqfast(), CheckConstraintCmp(), CheckForLocalBufferLeaks(), ckpt_buforder_comparator(), cmp_fxid(), cmp_lbestatus(), cmp_list_len_asc(), cmp_list_len_contents_asc(), cmp_lsn(), cmp_string(), cmpaliases(), cmpEntries(), cmpEntryAccumulator(), cmpLexeme(), cmpLexemeInfo(), cmpLexemeQ(), cmpNodePtr(), cmpOffsetNumbers(), cmpQTN(), cmpTheLexeme(), codepoint_range_cmp(), common_prefix_cmp(), commonPrefix(), comp_location(), comp_trgm(), compare_block_numbers(), compare_datums_simple(), compare_distances(), compare_expanded_ranges(), compare_int(), compare_int16(), compare_mcvs(), compare_rows(), compare_scalars(), compare_scalars_simple(), compare_sort_item_count(), compare_syn(), compare_text_lexemes(), compare_val_int4(), compare_values(), comparecost(), compareDocR(), compareDoubles(), compareentry(), compareint(), compareJsonbContainers(), compareJsonbScalarValue(), compareNumeric(), comparePairs(), compareQueryOperand(), compareSyn(), CompareTSQ(), comparetup_cluster(), comparetup_cluster_tiebreak(), comparetup_datum(), comparetup_datum_tiebreak(), comparetup_heap(), comparetup_heap_tiebreak(), comparetup_index_brin(), comparetup_index_btree(), comparetup_index_btree_tiebreak(), comparetup_index_hash(), compareWalFileNames(), compareWORD(), compareWordEntryPos(), compASC(), compDESC(), complex_abs_cmp(), complex_abs_cmp_internal(), complex_abs_eq(), complex_abs_ge(), complex_abs_gt(), complex_abs_le(), complex_abs_lt(), complex_add(), computeIterativeZipfian(), constraints_equivalent(), convert(), convert64(), cube_cmp(), cube_cmp_v0(), cube_contained(), cube_contains(), cube_contains_v0(), cube_distance(), cube_eq(), cube_ge(), cube_gt(), cube_inter(), cube_le(), cube_lt(), cube_ne(), cube_overlap(), cube_overlap_v0(), cube_union(), cube_union_v0(), db_comparator(), dcs_cmp(), decoct(), Decomp_hash_func(), des_init(), diag4(), distance_chebyshev(), distance_taxicab(), dshash_memcmp(), dshash_strcmp(), enum_cmp(), enum_eq(), enum_ge(), enum_gt(), enum_larger(), enum_le(), enum_lt(), enum_ne(), enum_smaller(), equal(), equal_keys(), equalsJsonbScalarValue(), evalStandardFunc(), file_sort_by_lsn(), final_filemap_cmp(), flag(), float4_cmp_internal(), float4_dist(), float8_cmp_internal(), float8_dist(), foreign_expr_walker(), FullTransactionIdNewer(), g_int_same(), g_intbig_same(), gbt_bitcmp(), gbt_biteq(), gbt_bitge(), gbt_bitgt(), gbt_bitle(), gbt_bitlt(), gbt_booleq(), gbt_boolge(), gbt_boolgt(), gbt_boolkey_cmp(), gbt_boolle(), gbt_boollt(), gbt_bpcharcmp(), gbt_bpchareq(), gbt_bpcharge(), gbt_bpchargt(), gbt_bpcharle(), gbt_bpcharlt(), gbt_byteacmp(), gbt_byteaeq(), gbt_byteage(), gbt_byteagt(), gbt_byteale(), gbt_bytealt(), gbt_cash_dist(), gbt_casheq(), gbt_cashge(), gbt_cashgt(), gbt_cashkey_cmp(), gbt_cashle(), gbt_cashlt(), gbt_dateeq(), gbt_datege(), gbt_dategt(), gbt_datekey_cmp(), gbt_datele(), gbt_datelt(), gbt_enumeq(), gbt_enumge(), gbt_enumgt(), gbt_enumkey_cmp(), gbt_enumle(), gbt_enumlt(), gbt_float4_dist(), gbt_float4eq(), gbt_float4ge(), gbt_float4gt(), gbt_float4key_cmp(), gbt_float4le(), gbt_float4lt(), gbt_float8_dist(), gbt_float8eq(), gbt_float8ge(), gbt_float8gt(), gbt_float8key_cmp(), gbt_float8le(), gbt_float8lt(), gbt_ineteq(), gbt_inetge(), gbt_inetgt(), gbt_inetkey_cmp(), gbt_inetle(), gbt_inetlt(), gbt_int2_dist(), gbt_int2eq(), gbt_int2ge(), gbt_int2gt(), gbt_int2key_cmp(), gbt_int2le(), gbt_int2lt(), gbt_int4_dist(), gbt_int4eq(), gbt_int4ge(), gbt_int4gt(), gbt_int4key_cmp(), gbt_int4le(), gbt_int4lt(), gbt_int8_dist(), gbt_int8eq(), gbt_int8ge(), gbt_int8gt(), gbt_int8key_cmp(), gbt_int8le(), gbt_int8lt(), gbt_intv_dist(), gbt_intveq(), gbt_intvge(), gbt_intvgt(), gbt_intvkey_cmp(), gbt_intvle(), gbt_intvlt(), gbt_macad8eq(), gbt_macad8ge(), gbt_macad8gt(), gbt_macad8key_cmp(), gbt_macad8le(), gbt_macad8lt(), gbt_macadeq(), gbt_macadge(), gbt_macadgt(), gbt_macadkey_cmp(), gbt_macadle(), gbt_macadlt(), gbt_num_same(), gbt_numeric_cmp(), gbt_numeric_eq(), gbt_numeric_ge(), gbt_numeric_gt(), gbt_numeric_le(), gbt_numeric_lt(), gbt_oid_dist(), gbt_oideq(), gbt_oidge(), gbt_oidgt(), gbt_oidkey_cmp(), gbt_oidle(), gbt_oidlt(), gbt_textcmp(), gbt_texteq(), gbt_textge(), gbt_textgt(), gbt_textle(), gbt_textlt(), gbt_time_dist(), gbt_timeeq(), gbt_timege(), gbt_timegt(), gbt_timekey_cmp(), gbt_timele(), gbt_timelt(), gbt_ts_dist(), gbt_tseq(), gbt_tsge(), gbt_tsgt(), gbt_tskey_cmp(), gbt_tsle(), gbt_tslt(), gbt_uuideq(), gbt_uuidge(), gbt_uuidgt(), gbt_uuidkey_cmp(), gbt_uuidle(), gbt_uuidlt(), gbt_vsrt_cmp(), gcd(), gdb_date_dist(), get_b_utf8(), get_ten(), ghstore_same(), gin_btree_compare_prefix(), gin_cmp_prefix(), gin_cmp_tslexeme(), gin_enum_cmp(), gin_numeric_cmp(), ginCompareAttEntries(), ginCompareEntries(), ginCompareItemPointers(), GinInitBuffer(), GinInitMetabuffer(), ginMergeItemPointers(), gist_bbox_zorder_cmp(), GISTInitBuffer(), gistKeyIsEQ(), gseg_picksplit_item_cmp(), gtrgm_same(), gtsquery_same(), gtsvector_same(), guc_var_compare(), hash_bytes(), hash_bytes_extended(), hash_bytes_uint32(), hash_bytes_uint32_extended(), hash_combine(), hash_combine64(), heap_compare_slots(), hemdist(), hemdistcache(), hemdistsign(), if(), index_pages_fetched(), inet_cidr_ntop_ipv4(), inet_cidr_ntop_ipv6(), inet_net_ntop_ipv4(), inner_int_contains(), inner_int_inter(), inner_int_overlap(), inner_int_union(), int2_dist(), int2eqfast(), int4_dist(), int4eqfast(), int8_dist(), int_cmp(), intarray_concat_arrays(), intarray_push_array(), interval_cmp_lower(), interval_cmp_upper(), intset_subtract(), ipv4eq(), ipv6eq(), irbt_cmp(), isort_cmp(), itemptr_comparator(), join_tsqueries(), key_cmp(), len_utf8(), lengthCompareJsonbPair(), lengthCompareJsonbStringValue(), list_sort(), ListComparatorForWalSummaryFiles(), llvm_compile_expr(), lseg_inside_poly(), ltree_addltree(), ltree_addtext(), ltree_compare(), ltree_concat(), ltree_index(), ltree_same(), ltree_strncasecmp(), ltree_textadd(), macaddr8_in(), macaddr_in(), main(), makeBoolExpr(), makesearch(), map_multipart_sql_identifier_to_xml_name(), mbms_add_members(), mbms_int_members(), mbms_overlap_sets(), mcelem_array_contained_selec(), merge(), MinXLogRecPtr(), multi_sort_compare(), multi_sort_compare_dim(), multi_sort_compare_dims(), nameeqfast(), network_broadcast(), network_hostmask(), network_netmask(), network_network(), newLexeme(), NFC_QC_hash_func(), NFKC_QC_hash_func(), NormalTransactionIdOlder(), numeric_is_less(), numeric_to_char(), numeric_to_number(), object_address_comparator(), oid_compare(), oid_dist(), oidvectoreqfast(), on_ppath(), pairingheap_GISTSearchItem_cmp(), pairingheap_SpGistSearchItem_cmp(), parse_new_len(), parse_old_len(), path_usage_comparator(), pct_info_cmp(), pg_add_s16_overflow(), pg_add_s32_overflow(), pg_add_s64_overflow(), pg_add_u16_overflow(), pg_add_u32_overflow(), pg_add_u64_overflow(), pg_b64_decode(), pg_base64_decode(), pg_cmp_s16(), pg_cmp_s32(), pg_cmp_s64(), pg_cmp_size(), pg_cmp_u16(), pg_cmp_u32(), pg_cmp_u64(), pg_comp_crc32c_sb8(), pg_lsn_cmp(), pg_mul_s16_overflow(), pg_mul_s32_overflow(), pg_mul_s64_overflow(), pg_mul_u16_overflow(), pg_mul_u32_overflow(), pg_mul_u64_overflow(), pg_qsort_strcmp(), pg_sub_s16_overflow(), pg_sub_s32_overflow(), pg_sub_s64_overflow(), pg_sub_u16_overflow(), pg_sub_u32_overflow(), pg_sub_u64_overflow(), pgstat_cmp_hash_key(), pgwin32_recv(), pgwin32_send(), PinBuffer(), PinBuffer_Locked(), pivotFieldCompare(), pq_getmsgint(), pq_sendint(), qsort_partition_hbound_cmp(), qsort_partition_list_value_cmp(), qsort_partition_rbound_cmp(), qsort_tuple_int32_compare(), qsort_tuple_unsigned_compare(), qsortCompareItemPointers(), QTNEq(), range(), rankCompare(), ReadInt(), ReadRecentBuffer(), ready_file_comparator(), Recomp_hash_func(), reconstruct_from_incremental_file(), record_type_typmod_compare(), ReorderBufferIterCompare(), reorderqueue_cmp(), resource_priority_cmp(), restrict_infos_logically_equal(), rho(), row_security_policy_cmp(), rt_box_union(), rule_cmp(), seg_cmp(), seg_contained(), seg_contains(), seg_inter(), seg_left(), seg_over_left(), seg_over_right(), seg_overlap(), seg_right(), seg_union(), self_join_candidates_cmp(), sha1_step(), SHA256_Transform(), SHA512_Transform(), shared_dependency_comparator(), shared_record_table_compare(), silly_cmp_tsvector(), single_bound_cmp(), skip_b_utf8(), skip_utf8(), slot_compile_deform(), sort_item_compare(), sortins_cmp(), sortouts_cmp(), spcachekey_equal(), SpGistInitBuffer(), sqrt_var(), standby_priority_comparator(), step_bsearch_cmp(), step_qsort_cmp(), tbm_intersect(), tbm_intersect_page(), tbm_union(), test_pattern(), texteqfast(), tidcmp(), timestamp_fastcmp(), touched_lseg_inside_poly(), TransactionIdOlder(), transformBooleanTest(), treekey_cmp(), ts_ckpt_progress_comparator(), ts_dist(), tsCompareString(), tsquery_and(), tsquery_cmp(), tsquery_or(), tsquery_phrase_distance(), tsqueryout(), tstz_dist(), typesequiv(), umul128(), union_tuples(), UnpinBuffer(), UnpinBufferNoOwner(), verify_cb(), WordEntryCMP(), WriteInt(), x_cmp(), xmin_cmp(), and y_cmp().

◆ false

return false

◆ g_weak

bool g_weak = false
static

Definition at line 43 of file isn.c.

Referenced by accept_weak_input(), string2ean(), and weak_input_status().

◆ i

int i = 0

Definition at line 73 of file isn.c.

Referenced by _brin_end_parallel(), _bt_advance_array_keys(), _bt_allequalimage(), _bt_bestsplitloc(), _bt_bottomupdel_finish_pending(), _bt_compare(), _bt_deadblocks(), _bt_defaultinterval(), _bt_delitems_delete(), _bt_delitems_delete_check(), _bt_delitems_update(), _bt_delitems_vacuum(), _bt_deltasortsplits(), _bt_end_parallel(), _bt_end_vacuum(), _bt_find_extreme_element(), _bt_findsplitloc(), _bt_first(), _bt_interval_edges(), _bt_killitems(), _bt_load(), _bt_mark_array_keys(), _bt_mkscankey(), _bt_pendingfsm_finalize(), _bt_preprocess_array_keys(), _bt_preprocess_keys(), _bt_readpage(), _bt_restore_array_keys(), _bt_restore_page(), _bt_split(), _bt_start_array_keys(), _bt_start_vacuum(), _bt_update_posting(), _bt_vacuum_cycleid(), _CloseArchive(), _crypt_blowfish_rn(), _dosmaperr(), _hash_addovflpage(), _hash_firstfreebit(), _hash_freeovflpage(), _hash_init(), _hash_kill_items(), _hash_ovflblkno_to_bitno(), _hash_pgaddmultitup(), _hash_splitbucket(), _hash_squeezebucket(), _ltree_compress(), _ltree_picksplit(), _ltree_same(), _ltree_union(), _outForeignKeyOptInfo(), _PG_init(), _print_horizontal_line(), _printTocEntry(), _SPI_convert_params(), _tarAddFile(), _tarGetHeader(), _tarPositionTo(), _tocEntryRequired(), _WriteByte(), accum_sum_add(), accum_sum_carry(), accum_sum_final(), accum_sum_reset(), accumArrayResultArr(), aclcontains(), aclitemout(), aclmask(), aclmask_direct(), aclmembers(), aclmerge(), acquire_inherited_sample_rows(), acquire_sample_rows(), add_abs(), add_child_join_rel_equivalences(), add_child_rel_equivalences(), add_pos(), addArcs(), addBoundaryDependencies(), AddEnumLabel(), addFkRecurseReferenced(), addFkRecurseReferencing(), addFooterToPublicationDesc(), addKey(), AddNewAttributeTuples(), addNode(), addRangeTableEntryForCTE(), addRangeTableEntryForFunction(), AddRoleMems(), addtype(), adjleap(), adjust_group_pathkeys_for_groupagg(), advance_transition_function(), advance_windowaggregate(), advance_windowaggregate_base(), afterTriggerCheckState(), AfterTriggerSaveEvent(), AfterTriggerSetState(), agg_retrieve_direct(), agg_retrieve_hash_table_in_memory(), AggregateCreate(), alloc_pool(), allocateReloptStruct(), AllocateVfd(), allocCStatePrepared(), AlterDomainNotNull(), AlterOperator(), AlterPolicy(), AlterTableGetRelOptionsLockLevel(), analyze_mcv_list(), append_depends_on_extension(), append_nonpartial_cost(), AppendAttributeTuples(), appendReloptionsArray(), appendStringLiteral(), apply_handle_update(), apply_map_update(), apply_pathtarget_labeling_to_tlist(), apply_returning_filter(), apply_scanjoin_target_to_paths(), apply_typmod(), applyRemoteGucs(), apw_dump_now(), apw_load_buffers(), arabic_UTF_8_stem(), array_agg_array_combine(), array_agg_combine(), array_agg_deserialize(), array_agg_serialize(), array_cat(), array_cmp(), array_contain_compare(), array_desc(), array_dim_to_json(), array_dim_to_jsonb(), array_dims(), array_eq(), array_extract_slice(), array_fill_internal(), array_get_element(), array_get_element_expanded(), array_get_slice(), array_in(), array_insert_slice(), array_iter_next(), array_iterate(), array_map(), array_out(), array_recv(), array_replace_internal(), array_seek(), array_send(), array_set_element(), array_set_element_expanded(), array_set_slice(), array_shuffle_n(), array_slice_size(), array_subscript_check_subscripts(), array_to_datum_internal(), array_to_text_internal(), array_to_tsvector(), ArrayCheckBoundsSafe(), ArrayGetIntegerTypmods(), ArrayGetNItemsSafe(), ArrayGetOffset(), ascii(), AssertCheckExpandedRanges(), AssertCheckRanges(), associate(), asyncQueueAdvanceTail(), asyncQueueFillWarning(), asyncQueueUnregister(), AsyncShmemInit(), ATAddForeignKeyConstraint(), AtEOSubXact_Files(), AtEOSubXact_HashTables(), AtEOSubXact_LargeObject(), AtEOSubXact_RelationCache(), AtEOXact_HashTables(), AtEOXact_LargeObject(), AtEOXact_RelationCache(), ATExecAttachPartitionIdx(), ATExecChangeOwner(), ATInheritAdjustNotNulls(), AtPrepare_Locks(), ATRewriteTable(), AttachPartitionEnsureIndexes(), attnameAttNum(), autoinc(), AutoVacuumRequestWork(), AutoVacuumShmemInit(), AV_to_JsonbValue(), BaseBackup(), bbstreamer_tar_header(), be_lo_unlink(), begin_partition(), BF_set_key(), BIG5toCNS(), binary_upgrade_create_empty_extension(), binary_upgrade_extension_member(), binaryheap_build(), bit_and(), bit_or(), bit_out(), bitno_to_blkno(), bitposition(), bits_to_text(), bitsubstring(), bitxor(), blgetbitmap(), BlockRefTableEntryGetBlocks(), BlockRefTableEntryMarkBlockModified(), BlockRefTableEntrySetLimitBlock(), bloom_add_element(), bloom_add_value(), bloom_contains_value(), bloom_lacks_element(), BloomFormTuple(), blvalidate(), bms_add_member(), bms_add_members(), bms_add_range(), bms_compare(), bms_del_member(), bms_del_members(), bms_difference(), bms_equal(), bms_int_members(), bms_intersect(), bms_is_subset(), bms_join(), bms_member_index(), bms_nonempty_difference(), bms_overlap(), bms_replace_members(), bms_subset_compare(), bms_union(), boot_openrel(), BootstrapModeMain(), bottomup_sort_and_shrink(), bpchar(), bpchartruelen(), bqarr_in(), bracket(), brin_bloom_union(), brin_deform_tuple(), brin_form_tuple(), brin_memtuple_initialize(), brin_minmax_multi_consistent(), brin_minmax_multi_distance_inet(), brin_minmax_multi_distance_uuid(), brin_minmax_multi_summary_out(), brin_page_items(), brin_range_deserialize(), brin_range_serialize(), bringetbitmap(), brinvalidate(), brtuple_disk_tupdesc(), bt_entry_unique_check(), bt_index_check_internal(), bt_normalize_tuple(), bt_page_print_tuples(), bt_target_page_check(), btoidvectorcmp(), btree_xlog_updates(), btreevacuumposting(), btvacuumpage(), btvalidate(), buffers_to_iovec(), BufferSync(), BufFileAppend(), BufFileClose(), BufFileTruncateFileSet(), build_aggregate_finalfn_expr(), build_aggregate_transfn_expr(), build_attnums_array(), build_attrmap_by_name(), build_attrmap_by_position(), build_column_frequencies(), build_concat_foutcache(), build_distances(), build_distinct_groups(), build_EvalXFuncInt(), build_function_result_tupdesc_d(), build_guc_variables(), build_index_pathkeys(), build_index_tlist(), build_local_reloptions(), build_mss(), build_partition_pathkeys(), build_pertrans_for_aggref(), build_pgstattuple_type(), build_regexp_match_result(), build_regtype_array(), build_remote_returning(), build_row_from_vars(), build_sorted_items(), build_test_match_result(), build_tuplestore_recursively(), buildACLCommands(), BuildDummyIndexInfo(), BuildHardcodedDescriptor(), BuildIndexInfo(), BuildIndexValueDescription(), buildMatViewRefreshDependencies(), BuildSpeculativeIndexInfo(), BuildTupleFromCStrings(), byteaout(), cache_locale_time(), cache_record_field_properties(), CacheRegisterSyscacheCallback(), calc_distr(), calc_hist(), calc_hist_selectivity(), calc_hist_selectivity_contained(), calc_hist_selectivity_contains(), calc_inet_union_params(), calc_inet_union_params_indexed(), calc_length_hist_frac(), calc_rank_and(), calc_rank_cd(), calc_rank_or(), calc_word_similarity(), calculate_client_proof(), calculate_totals(), CallSyscacheCallbacks(), can_coerce_type(), cannotCastJsonbValue(), cash_div_int4(), cash_div_int8(), cash_mul_int4(), cash_mul_int8(), cash_numeric(), CatalogCacheCompareTuple(), CatalogCacheCreateEntry(), CatalogCacheInitializeCache(), CatalogIndexInsert(), CatalogTuplesMultiInsertWithInfo(), CatCacheCopyKeys(), CatCacheFreeKeys(), CatCacheRemoveCList(), check_amproc_signature(), check_attrmap_match(), check_backtrace_functions(), check_backup_label_files(), check_circularity(), check_conn_params(), check_control_files(), check_exclusion_or_unique_constraint(), check_for_freed_segments_locked(), check_foreign_key(), check_index_only(), check_old_cluster_subscription_state(), check_password(), check_primary_key(), check_publications_origin(), check_role_for_policy(), check_selective_binary_conversion(), check_testspec(), check_valid_internal_signature(), check_valid_polymorphic_signature(), checkAllTheSame(), CheckAttributeNamesTypes(), CheckAttributeType(), checkcondition_HL(), CheckConditional(), CheckDateTokenTable(), CheckDeadLock(), CheckExprStillValid(), checkFkeyPermissions(), CheckForBufferLeaks(), CheckForLocalBufferLeaks(), CheckForSessionAndXactLocks(), CheckIndexCompatible(), checkInsertTargets(), checkLevel(), checkmatchall(), checkmatchall_recurse(), CheckPointReplicationOrigin(), CheckPointReplicationSlots(), CheckPointTwoPhase(), checkRuleResultList(), checkSharedDependencies(), checkSplitConditions(), CheckTableForSerializableConflictIn(), checkViewColumns(), checkWellFormedRecursion(), choose_best_statistics(), choose_bitmap_and(), ChooseIndexColumnNames(), chooseScript(), circle_poly(), citerdissect(), clauselist_apply_dependencies(), cleanup_tsquery_stopwords(), CleanupInvalidationState(), CleanupTempFiles(), CloneFkReferenced(), CloneFkReferencing(), CloneRowTriggersToPartition(), closeAllVfds(), ClosePipeStream(), ClosePostmasterPorts(), CloseServerPorts(), CloseTransientFile(), cluster_all_databases(), cmp_orderbyvals(), CNStoBIG5(), cntsize(), coerce_record_to_complex(), collectComments(), collectMatchesForHeapRow(), collectRoleNames(), collectSecLabels(), collectTSQueryValues(), colname_is_unique(), commonPrefix(), compactify_tuples(), CompareIndexInfo(), compareJsonbContainers(), CompareOpclassOptions(), comparison_ops_are_compatible(), compatCrosstabTupleDescs(), compatible_tupdescs(), compile_database_list(), compile_plperl_function(), compile_pltcl_function(), compile_relation_list_one_db(), compileTheLexeme(), compileTheSubstitute(), composite_to_json(), composite_to_jsonb(), compute_array_stats(), compute_distinct_stats(), compute_expr_stats(), compute_index_stats(), compute_partition_hash_value(), compute_range_stats(), compute_scalar_stats(), compute_trivial_stats(), compute_tsvector_stats(), ComputePartitionAttrs(), computeRegionDelta(), concat_internal(), ConfigurePostmasterWaitSet(), connect_pg_server(), ConnectDatabase(), connectDatabase(), conninfo_array_parse(), consider_groupingsets_paths(), ConstraintImpliedByRelConstraint(), construct_md_array(), constructConnStr(), ConstructTupleDescriptor(), control_cksum(), ConversionCreate(), convert(), convert64(), convert_bytea_to_scalar(), convert_GUC_name_for_parameter_acl(), convert_int_from_base_unit(), convert_network_to_scalar(), convert_prep_stmt_params(), convert_real_from_base_unit(), convert_subquery_pathkeys(), convert_to_base_unit(), convertJsonbArray(), convertJsonbObject(), ConvertTimeZoneAbbrevs(), copy_connection(), copy_plpgsql_datums(), copy_replication_slot(), copy_table(), CopyArrayEls(), CopyGetAttnums(), CopyIndexAttOptions(), CopyMultiInsertBufferCleanup(), CopyMultiInsertBufferFlush(), copyParamList(), copyTemplateDependencies(), CopyTriggerDesc(), copyTSLexeme(), CopyVar(), cost_append(), count_distinct_groups(), count_nulls(), crc24(), create_foreignscan_plan(), create_hash_bounds(), create_indexscan_plan(), create_internal(), create_list_bounds(), create_memoize_plan(), create_mergejoin_plan(), create_partitionwise_grouping_paths(), create_range_bounds(), create_secmsg(), CreateComments(), CreateConstraintEntry(), CreateFunction(), CreateLWLocks(), CreateOptsFile(), CreatePartitionPruneState(), CreatePolicy(), CreateSharedBackendStatus(), CreateSharedComments(), CreateSharedInvalidationState(), CreateStatistics(), CreateTriggerFiringOn(), CreateTupleDesc(), CreateTupleDescCopy(), CreateTupleDescCopyConstr(), creviterdissect(), crosstab(), cube_a_f8(), cube_a_f8_f8(), cube_c_f8(), cube_c_f8_f8(), cube_cmp_v0(), cube_contains_v0(), cube_distance(), cube_enlarge(), cube_inter(), cube_is_point_internal(), cube_out(), cube_overlap_v0(), cube_recv(), cube_send(), cube_subset(), cube_union_v0(), current_schemas(), currtid_for_view(), cursor_to_xml(), d2d(), daitch_mokotoff_coding(), dataBeginPlaceToPageLeaf(), dataFindChildPtr(), date_test_defmt(), date_test_fmt(), date_test_strdate(), dbase_desc(), dbase_redo(), DCH_cache_getnew(), DCH_cache_search(), DCH_prevent_counter_overflow(), DCH_to_char(), DeadLockCheck(), DeadLockCheckRecurse(), DeadLockReport(), debug_reconstruction(), debugStartup(), debugtup(), deccall2(), deccall3(), deccvasc(), decdiv(), decide_file_actions(), decmul(), DecodeAbort(), DecodeCommit(), DecodeDate(), DecodeDateTime(), DecodeInterval(), DecodeMultiInsert(), DecodeNumberField(), decodePageSplitRecord(), DecodePrepare(), DecodeTextArrayToBitmapset(), DecodeTime(), DecodeTimeOnly(), DecodeXLogRecord(), decompose_code(), deconstruct_array(), decsub(), dectodbl(), DefineAttr(), DefineIndex(), DefineQueryRewrite(), DefineSequence(), DefineTSConfiguration(), DefineTSTemplate(), deleteObjectsInList(), DelRoleMems(), delvacuum_desc(), deparse_lquery(), deparse_ltree(), deparseAnalyzeSql(), deparseExplicitTargetList(), deparseRangeTblRef(), deparseTargetList(), dependencies_clauselist_selectivity(), dependency_degree(), deregister_seq_scan(), des_init(), desc_recompress_leaf(), describeFunctions(), describeOneTableDetails(), describeOperators(), describePublications(), DescribeQuery(), describeRoles(), describeTableDetails(), DestroyParallelContext(), detzcode(), detzcode64(), difference(), disable_all_timeouts(), disable_timeouts(), disconnect_all(), disconnect_atexit(), DiscreteKnapsack(), dist_ppath_internal(), dist_ppoly_internal(), distance_chebyshev(), distance_taxicab(), div_var(), div_var_fast(), div_var_int(), do_analyze_rel(), do_autovacuum(), do_compile(), do_field(), Do_MultiXactIdWait(), do_pset(), do_to_timestamp(), do_watch(), DoesMultiXactIdConflict(), dofindsubquery(), doPickSplit(), dopr(), dotrim(), DOTypeNameCompare(), downcase_convert(), downcase_identifier(), drop_descriptor(), DropAllPredicateLocksFromTable(), dropconstraint_internal(), DropDatabaseBuffers(), dropDBs(), DropRelationAllLocalBuffers(), DropRelationBuffers(), DropRelationFiles(), DropRelationLocalBuffers(), DropRelationsAllBuffers(), dropRoles(), dropTablespaces(), dsa_detach(), dsa_dump(), dsa_pin_mapping(), dsa_release_in_place(), dshash_create(), dshash_destroy(), dshash_dump(), dsm_attach(), dsm_cleanup_using_control_segment(), dsm_create(), dsm_postmaster_shutdown(), dsm_unpin_segment(), dtcvasc(), dttofmtasc_replace(), dump_binary(), dump_dynexecute(), dump_dynfors(), dump_ind(), dump_line(), dump_one_relation(), dump_open(), dump_raise(), dump_return_query(), dump_sqlda(), dumpCompositeType(), dumpCompositeTypeColComments(), dumpConstraint(), dumpDatabase(), dumpDatabaseConfig(), dumpDatabases(), dumpDomain(), dumpEnumType(), dumpExtension(), dumpFunc(), dumpLOs(), dumpOpclass(), dumpOpfamily(), dumpRoleGUCPrivs(), dumpRoleMembership(), dumpRoles(), dumpSearchPath(), dumpSecLabel(), dumpSubscription(), dumpTable(), dumpTableData_insert(), dumpTableSecLabel(), dumpTablespaces(), dumpTSConfig(), dumptuples(), dumpUserConfig(), dumpUserMappings(), dupEvents(), EA_get_flat_size(), ecpg_build_compat_sqlda(), ecpg_build_native_sqlda(), ecpg_build_params(), ecpg_process_output(), ecpg_set_compat_sqlda(), ecpg_set_native_sqlda(), ECPGconnect(), edge_failure(), element_alloc(), emit_jsp_gin_entries(), EmitProcSignalBarrier(), emitShSecLabels(), enable_timeout(), enable_timeouts(), EnableDisableTrigger(), ensure_active_superblock(), entry_dealloc(), entryFindChildPtr(), entryLoadMoreItems(), entrySplitPage(), EnumValuesCreate(), eqjoinsel_inner(), eqjoinsel_semi(), equality_ops_are_compatible(), equalPolicy(), equalRowTypes(), equalRuleLocks(), equalTupleDescs(), ER_get_flat_size(), errstart(), escape_single_quotes_ascii(), estimate_multivariate_ndistinct(), estimate_num_groups(), estimateHyperLogLog(), EstimateParamListSpace(), euc_jp2sjis(), eval_windowaggregates(), EvalOrderByExpressions(), EvalPlanQualBegin(), EvalPlanQualStart(), evalStandardFunc(), EvaluateParams(), examine_attribute(), examine_expression(), exec_bind_message(), exec_command_crosstabview(), exec_command_pset(), exec_describe_statement_message(), exec_eval_using_params(), exec_for_query(), Exec_ListenPreCommit(), exec_stmt_block(), ExecAppendAsyncBegin(), ExecAppendAsyncEventWait(), ExecAppendAsyncRequest(), ExecBatchInsert(), ExecBRDeleteTriggers(), ExecBRInsertTriggers(), ExecBRUpdateTriggers(), ExecBSDeleteTriggers(), ExecBSInsertTriggers(), ExecBSTruncateTriggers(), ExecBSUpdateTriggers(), ExecBuildSlotPartitionKeyDescription(), ExecBuildSlotValueDescription(), ExecCheckIndexConstraints(), ExecCleanupTupleRouting(), ExecCloseIndices(), ExecCloseRangeTableRelations(), ExecComputeStoredGenerated(), ExecCrossPartitionUpdateForeignKey(), execCurrentOf(), ExecEndAppend(), ExecEndBitmapAnd(), ExecEndBitmapOr(), ExecEndFunctionScan(), ExecEndMemoize(), ExecEndMergeAppend(), ExecEndModifyTable(), ExecEndWindowAgg(), ExecEvalArrayExpr(), ExecEvalFuncArgs(), ExecEvalHashedScalarArrayOp(), ExecEvalPreOrderedDistinctMulti(), ExecEvalScalarArrayOp(), ExecEvalWholeRowVar(), ExecEvalXmlExpr(), ExecFilterJunk(), ExecFindMatchingSubPlans(), ExecGrant_Relation(), ExecHashBuildSkewHash(), ExecHashGetHashValue(), ExecHashTableCreate(), ExecHashTableDestroy(), ExecHashTableDetach(), ExecHashTableResetMatchFlags(), ExecInitAgg(), ExecInitAppend(), ExecInitBitmapAnd(), ExecInitBitmapOr(), ExecInitExprRec(), ExecInitFunctionScan(), ExecInitGatherMerge(), ExecInitIndexScan(), ExecInitInterpreter(), ExecInitJunkFilterConversion(), ExecInitMemoize(), ExecInitMerge(), ExecInitMergeAppend(), ExecInitModifyTable(), ExecInitParallelPlan(), ExecInitStoredGenerated(), ExecInitSubPlan(), ExecInitSubscriptingRef(), ExecInitTableFuncScan(), ExecInitValuesScan(), ExecInitWindowAgg(), ExecInsertIndexTuples(), ExecIRDeleteTriggers(), ExecIRInsertTriggers(), ExecIRUpdateTriggers(), ExecMakeFunctionResultSet(), ExecMakeTableFunctionResult(), ExecMergeAppend(), ExecOpenIndices(), ExecParallelCreateReaders(), ExecParallelFinish(), ExecParallelHashCloseBatchAccessors(), ExecParallelHashEnsureBatchAccessors(), ExecParallelHashIncreaseNumBatches(), ExecParallelHashIncreaseNumBuckets(), ExecParallelHashJoinPartitionOuter(), ExecParallelHashJoinSetUpBatches(), ExecParallelHashMergeCounters(), ExecParallelHashRepartitionRest(), ExecParallelHashTableAlloc(), ExecParallelReportInstrumentation(), ExecParallelRetrieveInstrumentation(), ExecParallelSetupTupleQueues(), ExecRelCheck(), ExecReScanAppend(), ExecReScanBitmapAnd(), ExecReScanBitmapOr(), ExecReScanFunctionScan(), ExecReScanMergeAppend(), ExecSetParamPlan(), ExecSetTupleBound(), execTuplesHashPrepare(), execTuplesMatchPrepare(), execTuplesUnequal(), execute_attr_map_slot(), execute_attr_map_tuple(), execute_jsp_gin_node(), execute_test(), ExecuteCallStmt(), executeDateTimeMethod(), executeItemOptUnwrapTarget(), executeMetaCommand(), ExecuteTruncateGuts(), ExecWindowAgg(), exit_nicely(), expand_dbname_patterns(), expand_extension_name_patterns(), expand_foreign_server_name_patterns(), expand_groupingset_node(), expand_indexqual_rowcompare(), expand_partitioned_rtentry(), expand_schema_name_patterns(), expand_table_name_patterns(), expandColorTrigrams(), ExpandConstraints(), expanded_record_set_tuple(), expandRecordVariable(), ExpandRowReference(), ExplainFlushWorkersState(), ExplainPrintSettings(), ExportSnapshot(), expr_fetch_func(), ExtendBufferedRelLocal(), ExtendBufferedRelShared(), ExtendBufferedRelTo(), extension_config_remove(), extract_rollup_sets(), extract_variadic_args(), ExtractConnectionOptions(), ExtractReplicaIdentity(), f2d(), fallbackSplit(), FastPathTransferRelationLocks(), fd(), fe_sendint64(), fetch_more_data(), fetch_statentries_for_relation(), FigureColnameInternal(), FileSetDeleteAll(), FileSetInit(), FileWriteV(), fill_buffer(), fill_expanded_ranges(), fill_in_constant_lengths(), fillQueryRepresentationData(), fillRelOptions(), fillTrgm(), FillXLogStatsRow(), filter_list_to_array(), finalize_aggregate(), finalize_windowaggregate(), find_active_timeout(), find_among(), find_among_b(), find_any_idle_slot(), find_appinfos_by_relids(), find_arguments(), find_cols(), find_em_for_rel_target(), find_expr_references_walker(), find_hash_columns(), find_inheritance_children_extended(), find_list_position(), find_matching_idle_slot(), find_matching_subplans_recurse(), find_matching_ts_config(), find_mergeclauses_for_outer_pathkeys(), find_next_mcelem(), find_option(), find_or_create_child_node(), find_partition_scheme(), find_plan(), find_reconstructed_block_length(), find_strongest_dependency(), find_tids_one_page(), find_unconnected_slot(), findAttrByName(), findBuiltin(), findCommonAncestorTimeline(), FindDefaultConversion(), findDefaultOnlyColumns(), findDependencyLoops(), findDependentObjects(), findDontCares(), findDumpableDependencies(), findeq(), findJsonbValueFromContainer(), FindLockCycleRecurse(), FindLockCycleRecurseMember(), findLoop(), FindTriggerIncompatibleWithInheritance(), findVariant(), finish_heap_swap(), fireRIRrules(), fix_dependencies(), fix_merged_indexes(), flagInhAttrs(), flagInhIndexes(), flagInhTables(), flattenJsonPathParseItem(), flush_pipe_input(), FlushDatabaseBuffers(), FlushRelationBuffers(), FlushRelationsAllBuffers(), fmgr_lookupByName(), fmgr_sql_validator(), fmtCopyColumnList(), fmtlong(), fn(), foreign_grouping_ok(), ForgetManyTestResources(), format_node_dump(), format_numeric_locale(), format_procedure_extended(), format_procedure_parts(), FormIndexDatum(), FormPartitionKeyDatum(), formrdesc(), free_command(), free_pool(), free_readfile(), FreeDir(), FreeFile(), freelacons(), FreePageBtreeUpdateParentPointers(), FreePageManagerPutInternal(), freePGconn(), FreeTriggerDesc(), FreeTupleDesc(), FreezeMultiXactId(), fsm_page_contents(), func_get_detail(), func_select_candidate(), funcname_signature_string(), FuncnameGetCandidates(), FunctionNext(), g_cube_picksplit(), g_cube_union(), g_int_compress(), g_int_decompress(), g_int_picksplit(), g_int_union(), g_intbig_compress(), g_intbig_consistent(), g_intbig_picksplit(), g_intbig_same(), g_intbig_union(), gather_merge_clear_tuples(), gather_merge_getnext(), gather_merge_init(), gather_merge_setup(), gbt_num_picksplit(), gbt_num_union(), gbt_time_dist(), gbt_ts_dist(), gbt_var_node_cp_len(), gbt_var_picksplit(), gbt_var_union(), gen_partprune_steps_internal(), gen_prune_steps_from_opexps(), generate_base_implied_equalities(), generate_combinations_recurse(), generate_dependencies_recurse(), generate_implied_equalities_for_column(), generate_join_implied_equalities(), generate_matching_part_pairs(), generate_normalized_query(), generate_orderedappend_paths(), generateClonedExtStatsStmt(), generateClonedIndexStmt(), genericPickSplit(), GenericXLogFinish(), GenericXLogStart(), gensign(), geqo_copy(), get_agg_expr_helper(), get_alternative_expectfile(), get_attnum_pk_pos(), get_attstatsslot(), get_cipher_info(), get_column_alias_list(), get_comma_elts(), get_compatible_hash_operators(), get_configdata(), get_crosstab_tuplestore(), get_decomposed_size(), get_dependent_generated_columns(), get_docrep(), get_eclass_for_sort_expr(), get_eclass_indexes_for_relids(), get_expr_result_type(), get_foreign_key_join_selectivity(), get_from_clause_coldeflist(), get_func_arg_info(), get_func_input_arg_names(), get_func_result_name(), get_guc_variables(), get_local_synced_slots(), get_matching_hash_bounds(), get_matching_partitions(), get_mergejoin_opfamilies(), get_next_fragment(), get_non_null_list_datum_count(), get_object_address_opf_member(), get_op_btree_interpretation(), get_op_hash_functions(), get_ordering_op_for_equality_op(), get_ordering_op_properties(), get_parallel_object_list(), get_partition_for_tuple(), get_path_all(), get_pkey_attnames(), get_primary_key_attnos(), get_qual_for_hash(), get_qual_for_list(), get_qual_for_range(), get_range_nulltest(), get_rel_data_width(), get_relation_column_alias_ids(), get_relation_constraint_attnos(), get_relation_constraints(), get_relation_info(), get_relation_statistics(), get_reloptions(), get_rule_expr(), get_sql_delete(), get_sql_insert(), get_sql_update(), get_stats_slot_range(), get_str_from_var(), get_text_array_contents(), get_tupdesc_for_join_scan_tuples(), get_tuple_of_interest(), get_variable_range(), get_view_query(), getAccessMethods(), getAdditionalACLs(), getAggregates(), getAnotherTuple(), GetAttributeByName(), GetBlockerStatusData(), getCasts(), getCollations(), getColorInfo(), GetConnection(), getConstraints(), getConversions(), getCopyStart(), getDefaultACLs(), getDependencies(), getDomainConstraints(), getDumpableObjects(), getEventTriggers(), getExtendedStatistics(), getExtensionMembership(), getExtensions(), GetFileBackupMethod(), getForeignDataWrappers(), getForeignServers(), getFuncs(), getHashFnv1a(), GetIdleWorker(), getIndexes(), GetIndexInputType(), getInherits(), getIthJsonbValueFromContainer(), getJsonbOffset(), GetLastImportantRecPtr(), GetLeaderApplyWorkerPid(), getleapdatetime(), GetLockConflicts(), GetLockStatusData(), getLOs(), getMessageFromWorker(), GetMultiXactIdHintBits(), GetMultiXactIdMembers(), GetMyPSlot(), GetNamedLWLockTranche(), getNamespaces(), GetOldestMultiXactId(), getOpclasses(), getOperators(), getOpfamilies(), getopt_long(), getOwnedSeqs(), getParamDescriptions(), getPartitioningInfo(), GetPermutation(), getPolicies(), GetPredicateLockStatusData(), GetPreparedTransactionList(), GetPrivateRefCountEntry(), getProcLangs(), getPublicationNamespaces(), getPublications(), getPublicationTables(), getQueryParams(), GetRelationPublications(), getRightMostDot(), getRowDescriptions(), getRules(), GetRunningTransactionLocks(), GetSchemaPublications(), getSpGistTupleDesc(), getSubscriptions(), getSubscriptionTables(), getTableAttrs(), getTableData(), getTableDataFKConstraints(), getTables(), GetTempTablespaces(), getTimelineHistory(), GetTotalResourceCount(), getTransforms(), getTriggers(), getTSConfigurations(), getTSDictionaries(), getTSParsers(), getTSTemplates(), gettype(), getTypes(), getvacant(), GetWALBlockInfo(), GetWALRecordInfo(), getWeights(), ghstore_compress(), ghstore_consistent(), ghstore_picksplit(), ghstore_same(), ghstore_union(), gimme_edge(), gimme_edge_table(), gimme_gene(), gimme_tour(), gin_bool_consistent(), gin_consistent_hstore(), gin_consistent_jsonb(), gin_consistent_jsonb_path(), gin_extract_hstore(), gin_extract_hstore_query(), gin_extract_jsonb_query(), gin_extract_query_trgm(), gin_extract_tsquery(), gin_extract_tsvector(), gin_extract_value_trgm(), gin_leafpage_items(), gin_trgm_consistent(), gin_trgm_triconsistent(), gin_triconsistent_jsonb(), gin_triconsistent_jsonb_path(), ginarrayconsistent(), ginarraytriconsistent(), ginBuildCallback(), ginbulkdelete(), gincost_pattern(), gincost_scalararrayopexpr(), gincostestimate(), ginExtractEntries(), ginFillScanEntry(), ginFillScanKey(), ginFreeScanKeys(), ginHeapTupleFastCollect(), ginHeapTupleFastInsert(), ginHeapTupleInsert(), gininsert(), ginInsertBAEntries(), ginint4_consistent(), ginint4_queryextract(), ginNewScanKey(), ginRedoDeleteListPages(), ginRedoInsertListPage(), ginRedoUpdateMetapage(), ginScanKeyAddHiddenEntry(), ginScanToDelete(), ginVacuumEntryPage(), ginVacuumItemPointers(), ginvalidate(), gist_box_picksplit(), gist_box_union(), gist_indexsortbuild(), gist_indexsortbuild_levelstate_flush(), gist_isparent(), gist_page_items(), gistbufferinginserttuples(), gistbuild(), gistchoose(), gistCompressValues(), gistDeCompressAtt(), gistEmptyAllBuffers(), gistextractpage(), gistFetchTuple(), gistfillbuffer(), gistfillitupvec(), gistFindCorrectParent(), gistFindPath(), gistfitpage(), gistgetadjusted(), gistGetNodeBuffer(), gistindex_keytest(), gistInitBuffering(), gistkillitems(), gistMakeUnionItVec(), gistnospace(), gistplacetopage(), gistRedoPageSplitRecord(), gistRelocateBuildBuffersOnSplit(), gistrescan(), gistScanPage(), gistSplit(), gistSplitByKey(), gistSplitHalf(), gistunionsubkeyvec(), gistUnloadNodeBuffers(), gistvacuum_delete_empty_pages(), gistvalidate(), gistXLogSplit(), gistXLogUpdate(), GrantLockLocal(), gseg_picksplit(), gseg_union(), gtrgm_compress(), gtrgm_picksplit(), gtrgm_same(), gtrgm_union(), gtsquery_union(), gtsvector_compress(), gtsvector_picksplit(), gtsvector_same(), gtsvector_union(), GUCArrayAdd(), GUCArrayDelete(), GUCArrayReset(), GucInfoMain(), HandleFunctionRequest(), HandleParallelMessage(), HandleParallelMessages(), has_dangerous_join_using(), has_partition_attrs(), has_relevant_eclass_joinclause(), has_seq_scans(), HasEveryWorkerTerminated(), hash(), hash_array(), hash_array_extended(), hash_bitmap_info(), hash_create(), hash_get_num_entries(), hash_metapage_info(), hash_multirange(), hash_multirange_extended(), hash_numeric(), hash_numeric_extended(), hash_record(), hash_record_extended(), hashagg_recompile_expressions(), hashagg_spill_finish(), hashagg_spill_init(), hashagg_spill_tuple(), hashRowType(), hashvalidate(), have_relevant_eclass_joinclause(), HaveVirtualXIDsDelayingChkpt(), heap_compute_data_size(), heap_fill_tuple(), heap_force_common(), heap_form_minimal_tuple(), heap_form_tuple(), heap_freeze_execute_prepared(), heap_index_delete_tuples(), heap_lock_tuple(), heap_lock_updated_tuple_rec(), heap_log_freeze_plan(), heap_modify_tuple_by_cols(), heap_multi_insert(), heap_multi_insert_pages(), heap_page_items(), heap_page_prune_execute(), heap_prune_chain(), heap_tuple_should_freeze(), heap_vacuum_rel(), heap_xlog_freeze_page(), heap_xlog_multi_insert(), heap_xlog_vacuum(), heapam_relation_needs_toast_table(), hemdistsign(), hexdecode_string(), hexval_n(), histogram_selectivity(), hk_breadth_search(), hk_depth_search(), hlCover(), hlfinditem(), hmac_init(), hstore_akeys(), hstore_avals(), hstore_cmp(), hstore_contains(), hstore_delete(), hstore_delete_array(), hstore_delete_hstore(), hstore_each(), hstore_exists_all(), hstore_exists_any(), hstore_from_array(), hstore_from_arrays(), hstore_from_record(), hstore_out(), hstore_populate_record(), hstore_recv(), hstore_send(), hstore_skeys(), hstore_slice_to_array(), hstore_slice_to_hstore(), hstore_svals(), hstore_to_array_internal(), hstore_to_json(), hstore_to_json_loose(), hstore_to_jsonb(), hstore_to_jsonb_loose(), hstore_to_plperl(), hstore_to_plpython(), hstoreArrayToPairs(), hstorePairs(), hstoreUpgrade(), hstoreValidNewFormat(), hstoreValidOldFormat(), hypothetical_check_argtypes(), hypothetical_dense_rank_final(), hypothetical_rank_common(), icu_validate_locale(), identify_locking_dependencies(), ieee_float32_to_uint32(), if(), ImportSnapshot(), inclusion_get_strategy_procinfo(), increment_overflow(), ind_fetch_func(), index_check_primary_key(), index_compute_xid_horizon_for_tuples(), index_concurrently_create_copy(), index_create(), index_delete_sort(), index_form_tuple_context(), index_recheck_constraint(), index_store_float8_orderby_distances(), indexOfColumn(), ineq_histogram_selectivity(), inet_cidr_ntop_ipv6(), inet_cidr_pton_ipv6(), inet_gist_picksplit(), inet_hist_inclusion_join_sel(), inet_hist_value_sel(), inet_mcv_hist_sel(), inet_mcv_join_sel(), inet_net_ntop_ipv6(), inet_semi_join_sel(), inet_spg_consistent_bitmap(), inet_spg_inner_consistent(), inet_spg_picksplit(), init_htab(), init_partition_map(), init_ps_display(), init_returning_filter(), init_slab_allocator(), init_tour(), InitAuxiliaryProcess(), initBloomState(), InitBufferPool(), InitCatCache(), initCreateFKeys(), initCreatePKeys(), initCreateTables(), initGinState(), initGISTstate(), initialize(), initialize_custom_rmgrs(), initialize_data_directory(), initialize_ntdll(), initialize_peragg(), initialize_reloptions(), initialize_revoke_actions(), InitializeAttributeOids(), InitializeLWLocks(), InitializeParallelDSM(), InitializeRelfilenumberMap(), InitializeTimeouts(), InitLocalBuffers(), InitPlan(), InitPredicateLocks(), InitProcess(), InitProcGlobal(), initTrie(), initValue(), InitWalSenderSlot(), injection_points_wakeup(), injection_wait(), inline_function(), inner_int_contains(), inner_int_inter(), inner_int_overlap(), inner_int_union(), inner_subltree(), insert_timeout(), InsertOneNull(), InsertOneTuple(), InsertOneValue(), InsertPgAttributeTuples(), InstrAlloc(), int44in(), int4_cash(), int4_mul_cash(), int8_cash(), int8_mul_cash(), intarray_del_elem(), intarray_match_first(), internal_size(), interpret_AS_clause(), interpret_function_parameter_list(), interpret_ident_response(), interpt_pp(), intoasc(), intr2num(), intset_subtract(), InvalidateObsoleteReplicationSlots(), InvalidateSystemCachesExtended(), inzone(), ipv6eq(), is_usable_unique_index(), is_visible_fxid(), isAffixInUse(), isCurrentGroup(), IsEveryWorkerIdle(), iso8859_to_utf8(), IssuePendingWritebacks(), isxdigits_n(), iterate_word_similarity(), json_build_array_worker(), json_build_object_worker(), json_lex_string(), json_object(), json_object_two_arg(), jsonb_build_array_worker(), jsonb_build_object_worker(), jsonb_delete_array(), jsonb_delete_idx(), jsonb_exec_setup(), jsonb_exists_all(), jsonb_exists_any(), jsonb_get_element(), jsonb_object(), jsonb_object_two_arg(), jsonb_subscript_check_subscripts(), jsonb_subscript_transform(), JsonbDeepContains(), jspGetArraySubscript(), k_hashes(), keyGetItem(), KnownAssignedXidsAdd(), KnownAssignedXidsCompress(), KnownAssignedXidsDisplay(), KnownAssignedXidsGetAndSetXmin(), KnownAssignedXidsGetOldestXmin(), KnownAssignedXidsRemovePreceding(), KnownAssignedXidsRemoveTree(), LagTrackerWrite(), lastcold(), LaunchParallelWorkers(), lazy_scan_noprune(), lazy_scan_prune(), lca(), lca_inner(), leapadd(), leapcorr(), left_offset(), LexizeExec(), libpq_traverse_files(), libpqrcv_connect(), list_copy_deep(), list_deduplicate_oid(), list_free_private(), listAvailableScripts(), listExtensionContents(), listSchemas(), listTSConfigsVerbose(), listTSParsersVerbose(), load_backup_manifests(), load_categories_hash(), load_enum_cache_data(), load_relcache_init_file(), load_resultmap(), load_tuple_array(), LocalExecuteInvalidationMessage(), localsub(), LockCheckConflicts(), LockGXact(), LockReassignCurrentOwner(), LockReassignOwner(), LockRelease(), LockReleaseAll(), LockReleaseCurrentOwner(), log_newpage_range(), log_newpages(), logicalrep_pa_worker_count(), logicalrep_partition_open(), logicalrep_read_attrs(), logicalrep_read_truncate(), logicalrep_read_tuple(), logicalrep_rel_att_by_name(), logicalrep_rel_mark_updatable(), logicalrep_rel_open(), logicalrep_relmap_free_entry(), logicalrep_relmap_update(), logicalrep_report_missing_attrs(), logicalrep_sync_worker_count(), logicalrep_worker_find(), logicalrep_worker_launch(), logicalrep_workers_find(), logicalrep_write_attrs(), logicalrep_write_truncate(), logicalrep_write_tuple(), LogicalTapeRewindForRead(), longest(), lookahead(), lookup_agg_function(), lookup_descriptor(), lookup_prop_name(), lookup_ts_config_cache(), lookup_var_attr_stats(), LookupBackgroundWorkerFunction(), LookupFuncWithArgs(), LookupGXact(), LookupParallelWorkerFunction(), lseg_inside_poly(), ltree2text(), ltree_index(), ltree_picksplit(), ltree_same(), ltree_to_plpython(), ltree_union(), ltsGetPreallocBlock(), LWLockAnyHeldByMe(), LWLockHeldByMe(), LWLockHeldByMeInMode(), LWLockRelease(), LWLockShmemSize(), mac8_2_uint64(), mac_2_uint64(), main(), make_array_ref(), make_bound_box(), make_bounded_heap(), make_build_data(), make_callstmt_target(), make_colname_unique(), make_copy_attnamelist(), make_fn_arguments(), make_group_input_target(), make_jsp_expr_node_args(), make_modifytable(), make_one_partition_rbound(), make_partial_grouping_target(), make_partition_pruneinfo(), make_partitionedrel_pruneinfo(), make_path_rowexpr(), make_pathtarget_from_tlist(), make_positional_trgm(), make_relative_path(), make_row_comparison_op(), make_sort_input_target(), make_tlist_from_pathtarget(), make_tsvector(), make_tuple_from_result_row(), make_tuple_from_row(), make_tuple_indirect(), make_window_input_target(), MakeConfigurationMapping(), makeDefaultBloomOptions(), makeDependencyGraph(), makeDependencyGraphWalker(), makeInteger(), makeRangeConstructors(), makeSublist(), makeTSQuerySign(), MakeUpper(), map_locale(), map_sql_table_to_xmlschema(), map_sql_typecoll_to_xmlschema_types(), map_sql_value_to_xml_value(), map_typename_pattern(), mark_fragment(), mark_hl_fragments(), mark_hl_words(), mark_invalid_subplans_as_finished(), MarkAsPreparing(), MarkAsPreparingGuts(), match_clause_to_partition_key(), match_eclasses_to_foreign_key_col(), match_index_to_operand(), matchLocks(), MatchNamedCall(), materializeResult(), mb_strchr(), mb_utf_validate(), mcelem_array_contain_overlap_selec(), mcelem_array_contained_selec(), mcelem_array_selec(), mcelem_tsquery_selec(), mcv_clause_selectivity_or(), mcv_clauselist_selectivity(), mcv_get_match_bitmap(), mcv_population(), mcv_selectivity(), mda_get_offset_values(), mda_get_prod(), mda_get_range(), mda_next_tuple(), mdreadv(), MemoizeHash_equal(), MemoizeHash_hash(), MemoryContextStatsInternal(), MemoryContextStatsPrint(), merge_map_updates(), MergeAttributes(), mergeins(), mic2sjis(), minmax_get_strategy_procinfo(), minmax_multi_get_strategy_procinfo(), miss(), mix_decrypt_normal(), mix_decrypt_resync(), mix_encrypt_normal(), mix_encrypt_resync(), MJCompare(), MJEvalInnerValues(), MJEvalOuterValues(), mkANode(), mkSPNode(), mkVoidAffix(), moveLeafs(), mul_var(), mulPow5divPow2(), multi_sort_compare(), MultiExecBitmapAnd(), MultiExecBitmapOr(), MultiExecParallelHash(), multirange_agg_transfn(), multirange_canonicalize(), multirange_cmp(), multirange_constructor2(), multirange_deserialize(), multirange_eq_internal(), multirange_get_bounds(), multirange_get_bounds_offset(), multirange_get_range(), multirange_out(), multirange_recv(), multirange_send(), multirange_size_estimate(), multixact_desc(), multixact_redo(), MultiXactIdCreateFromMembers(), MultiXactIdExpand(), MultiXactIdGetUpdateXid(), MultiXactIdIsRunning(), MultiXactIdSetOldestVisible(), mxid_to_string(), NamespaceCreate(), ndistinct_for_combination(), network_recv(), network_send(), networkjoinsel_semi(), newabbr(), newhicolorrow(), newLOfd(), next_insert(), NextCopyFrom(), nfalsepos_for_missing_strings(), NINormalizeWord(), NISortAffixes(), NISortDictionary(), nocache_index_getattr(), nocachegetattr(), NormalizeSubWord(), NUM_cache_getnew(), NUM_cache_search(), NUM_prevent_counter_overflow(), numeric_cash(), numeric_recv(), numeric_send(), numericvar_deserialize(), numericvar_serialize(), numericvar_to_int64(), numericvar_to_uint64(), NumLWLocksForNamedTranches(), numst(), object_address_present(), object_address_present_add_flags(), oid_array_to_list(), on_ppath(), opclass_for_family_datatype(), OperatorCreate(), OperatorShellMake(), OpernameGetCandidates(), OpernameGetOprid(), order_qual_clauses(), ordered_set_startup(), ordered_set_transition_multi(), outDatum(), output_escaped_str(), outzone(), overwrite(), pa_stream_abort(), packGraph(), PageIndexTupleDelete(), PageIndexTupleDeleteNoCompact(), PageIndexTupleOverwrite(), PageIsVerifiedExtended(), PageRepairFragmentation(), PageTruncateLinePointerArray(), pairingheap_GISTSearchItem_cmp(), pairingheap_SpGistSearchItem_cmp(), parallel_exec_prog(), parallel_transfer_all_new_dbs(), parallel_vacuum_compute_workers(), parallel_vacuum_end(), parallel_vacuum_init(), parallel_vacuum_process_all_indexes(), parallel_vacuum_process_unsafe_indexes(), ParallelBackupEnd(), ParallelBackupStart(), ParallelSlotsTerminate(), ParallelSlotsWaitCompletion(), parent_offset(), parse(), parse_fcall_arguments(), parse_key_value_arrays(), parse_re_flags(), parse_test_flags(), parse_tsquery(), ParseComplexProjection(), parseLocalRelOptions(), parseRelOptions(), parseRelOptionsInternal(), parseServiceFile(), parseVariable(), PartConstraintImpliedByRelConstraint(), partition_bounds_copy(), partition_bounds_create(), partition_bounds_equal(), partition_rbound_cmp(), partition_rbound_datum_cmp(), PartitionPruneFixSubPlanMap(), path_add(), path_add_pt(), path_area(), path_decode(), path_distance(), path_div_pt(), path_encode(), path_inter(), path_length(), path_mul_pt(), path_poly(), path_recv(), path_send(), path_sub_pt(), pathkeys_useful_for_merging(), patternToSQLRegex(), percentile_cont_multi_final_common(), percentile_disc_multi_final(), perform_rewind(), performMultipleDeletions(), PerformRadiusTransaction(), permute(), pg_analyze_and_rewrite_varparams(), pg_any_to_server(), pg_blocking_pids(), pg_buffercache_pages(), pg_buffercache_summary(), pg_checksum_block(), pg_clean_ascii(), pg_config(), pg_current_snapshot(), pg_decode_truncate(), pg_dependencies_out(), pg_eucjp_increment(), pg_event_trigger_ddl_commands(), pg_event_trigger_dropped_objects(), pg_extension_config_dump(), pg_find_encoding(), pg_get_constraintdef_worker(), pg_get_function_arg_default(), pg_get_functiondef(), pg_get_object_address(), pg_get_publication_tables(), pg_get_replication_slots(), pg_get_statisticsobj_worker(), pg_get_timezone_offset(), pg_get_triggerdef_worker(), pg_GSS_error_int(), pg_hmac_init(), pg_import_system_collations(), pg_interpret_timezone_abbrev(), pg_isolation_test_session_is_blocked(), pg_itoa(), pg_lfind32(), pg_lfind8(), pg_lfind8_le(), pg_logical_slot_get_changes_guts(), pg_md5_update(), pg_ndistinct_out(), pg_next_dst_boundary(), pg_preadv(), pg_prepared_statement(), pg_promote(), pg_pwritev(), pg_regcomp(), pg_regexec(), pg_safe_snapshot_blocking_pids(), pg_saslprep(), pg_send_history(), pg_show_replication_origin_status(), pg_snapshot_out(), pg_snapshot_recv(), pg_snapshot_send(), pg_sockaddr_cidr_mask(), pg_stat_get_progress_info(), pg_stat_get_recovery_prefetch(), pg_stat_get_slru(), pg_stat_get_subscription(), pg_stat_get_wal_senders(), pg_stat_statements_internal(), pg_stats_ext_mcvlist_items(), pg_ulltoa_n(), pg_ultoa_n(), pg_wal_summary_contents(), pg_wcsformat(), pgarch_readyXlog(), pgfdw_security_check(), pgoutput_column_list_init(), pgoutput_row_filter(), pgoutput_truncate(), pgp_get_cipher_block_size(), pgp_get_cipher_code(), pgp_get_cipher_key_size(), pgp_get_digest_code(), pgp_get_digest_name(), pgp_load_cipher(), pgp_mpi_cksum(), PGSharedMemoryCreate(), pgss_shmem_startup(), pgstat_execute_transactional_drops(), pgstat_gc_entry_refs(), pgstat_get_backend_current_activity(), pgstat_get_crashed_backend_activity(), pgstat_get_slru_index(), pgstat_index_page(), pgstat_io_reset_all_cb(), pgstat_io_snapshot_cb(), pgstat_progress_update_multi_param(), pgstat_release_matching_entry_refs(), pgstat_slru_flush(), pgstat_slru_reset_all_cb(), pgstattuple_approx_internal(), pgtls_init(), pgtls_verify_peer_name_matches_certificate_guts(), pgtypes_fmt_replace(), PGTYPESdate_defmt_asc(), PGTYPESdate_fmt_asc(), PGTYPESnumeric_copy(), PGTYPESnumeric_div(), PGTYPESnumeric_from_decimal(), PGTYPESnumeric_from_double(), PGTYPESnumeric_from_long(), PGTYPESnumeric_mul(), PGTYPESnumeric_to_decimal(), PGTYPESnumeric_to_int(), PGTYPEStimestamp_defmt_asc(), pgwin32_dispatch_queued_signals(), pgwin32_putenv(), pgwin32_select(), pgwin32_signal_initialize(), pgxmlNodeSetToText(), pickss(), plan_member_revoke(), plan_recursive_revoke(), plan_single_revoke(), plist_same(), plperl_array_to_datum(), plperl_call_perl_func(), plperl_call_perl_trigger_func(), plperl_func_handler(), plperl_hash_from_tuple(), plperl_ref_from_pg_array(), plperl_spi_exec_prepared(), plperl_spi_execute_fetch_result(), plperl_spi_prepare(), plperl_spi_query_prepared(), plperl_to_hstore(), plperl_trigger_build_args(), plperl_validator(), plpgsql_add_initdatums(), plpgsql_build_recfield(), plpgsql_dumptree(), plpgsql_exec_function(), plpgsql_exec_trigger(), plpgsql_finish_datums(), plpgsql_free_function_memory(), plpgsql_fulfill_promise(), plpgsql_parse_err_condition(), plpgsql_recognize_err_condition(), plpgsql_resolve_polymorphic_argtypes(), plpgsql_token_is_unreserved_keyword(), plpgsql_validator(), plpython_to_hstore(), plsample_func_handler(), plsample_trigger_handler(), pltcl_build_tuple_argument(), pltcl_build_tuple_result(), pltcl_func_handler(), pltcl_get_condition_name(), pltcl_process_SPI_result(), pltcl_set_tuple_values(), pltcl_SPI_execute(), pltcl_SPI_execute_plan(), pltcl_SPI_prepare(), pltcl_trigger_handler(), PLy_cursor_fetch(), PLy_cursor_plan(), PLy_function_build_args(), PLy_function_drop_args(), PLy_function_restore_args(), PLy_function_save_args(), PLy_generate_spi_exceptions(), PLy_input_setup_tuple(), PLy_modify_tuple(), PLy_output_setup_tuple(), PLy_procedure_create(), PLy_result_colnames(), PLy_result_coltypes(), PLy_result_coltypmods(), PLy_spi_execute_fetch_result(), PLy_spi_execute_plan(), PLy_spi_prepare(), PLy_trigger_build_args(), PLyDict_FromTuple(), PLyGenericObject_ToComposite(), PLyList_FromArray_recurse(), PLyMapping_ToComposite(), PLyMapping_ToJsonbValue(), PLySequence_ToArray(), PLySequence_ToArray_recurse(), PLySequence_ToComposite(), PLySequence_ToJsonbValue(), point_inside(), policy_role_list_to_array(), poly_contain_poly(), poly_distance(), poly_path(), poly_recv(), poly_send(), poly_to_circle(), pop_next_work_item(), populate_array(), populate_array_assign_ndims(), populate_array_report_expected_array(), populate_record(), populate_with_dummy_strings(), PortalSetResultFormat(), postgresAcquireSampleRowsFunc(), postgresImportForeignSchema(), PostgresMain(), PostPrepare_Locks(), postquel_sub_params(), power_var_int(), pq_check_connection(), pq_getmsgfloat4(), pq_getmsgfloat8(), pq_sendfloat4(), pq_sendfloat8(), pq_sendint(), pq_sendint16(), pq_sendint32(), pq_sendint64(), pq_sendint8(), pq_writeint16(), pq_writeint32(), pq_writeint64(), pq_writeint8(), PQclear(), pqConnectOptions2(), PQconnectPoll(), PQcopyResult(), PQdisplayTuples(), PQescapeByteaInternal(), PQescapeInternal(), PQescapeStringInternal(), PQfireResultCreateEvents(), PQfnumber(), pqFunctionCall3(), pqGetNegotiateProtocolVersion3(), PQinstanceData(), PQprint(), PQprintTuples(), PQregisterEventProc(), pqReleaseConnHosts(), PQreset(), PQresetPoll(), PQresultInstanceData(), PQresultSetInstanceData(), pqRowProcessor(), PQsendPrepare(), PQsendQueryGuts(), PQsetInstanceData(), PQsetResultAttrs(), PQsetvalue(), pqTraceOutputB(), pqTraceOutputD(), pqTraceOutputF(), pqTraceOutputG(), pqTraceOutputH(), pqTraceOutputNchar(), pqTraceOutputP(), pqTraceOutputt(), pqTraceOutputT(), PQunescapeBytea(), prepare_hash_slot(), prepare_probe_slot(), prepare_query_params(), prepare_sort_from_pathkeys(), PrepareForIncrementalBackup(), preparePresortedCols(), PrepareQuery(), PrepareRedoRemove(), preprocess_rowmarks(), PrescanPreparedTransactions(), pretty_format_node_dump(), print_aligned_text(), print_aligned_vertical(), print_aligned_vertical_line(), print_asciidoc_text(), print_asciidoc_vertical(), print_csv_text(), print_csv_vertical(), print_filemap(), print_function_arguments(), print_function_trftypes(), print_html_text(), print_html_vertical(), print_key(), print_latex_longtable_text(), print_latex_text(), print_latex_vertical(), print_pathkeys(), print_rmgr_list(), print_rt(), print_troff_ms_text(), print_troff_ms_vertical(), print_unaligned_text(), print_unaligned_vertical(), print_wchar_str(), printCrosstab(), printJsonPathItem(), printProgressReport(), printQuery(), printResult(), PrintResultInCrosstab(), printResults(), printsimple(), printsimple_startup(), printTableCleanup(), PrintTOCSummary(), printtup(), printtup_prepare_info(), ProcArrayApplyRecoveryInfo(), ProcArrayApplyXidAssignment(), ProcedureCreate(), process_ordered_aggregate_multi(), process_query_params(), process_queued_fetch_requests(), processCancelRequest(), processExtensionTables(), processPendingPage(), ProcessTwoPhaseBuffer(), ProcKill(), ProcSignalShmemInit(), prsd_lextype(), pub_collist_to_bitmapset(), publication_add_relation(), push_path(), pushJsonbValue(), px_crypt_des(), px_crypt_md5(), px_find_cipher(), QTNBinary(), QTNClearFlags(), QTNCopy(), QTNFree(), QTNodeCompare(), QTNSort(), QTNTernary(), query_to_oid_list(), query_to_xml_internal(), queryin(), QueuePartitionConstraintValidation(), qunique(), qunique_arg(), quote_if_needed(), r_more_than_one_syllable_word(), r_un_accent(), random_init_pool(), range_agg_finalfn(), range_contains_value(), range_deduplicate_values(), range_gist_class_split(), range_gist_double_sorting_split(), range_gist_fallback_split(), range_gist_picksplit(), range_gist_single_sorting_split(), range_gist_union(), range_sockaddr_AF_INET6(), rankSort(), rbt_populate(), RE_compile_and_cache(), read_file_data_into_buffer(), read_letter(), read_objtype_from_string(), read_tablespace_map(), ReadArrayBinary(), ReadArrayDimensions(), readDatum(), readfile(), ReadOffset(), ReadReplicationSlot(), ReadToc(), rebuild_database_list(), rebuildInsertSql(), ReceiveCopyBegin(), recompose_code(), reconstruct_from_incremental_file(), record_in(), record_out(), record_recv(), record_send(), recordMultipleDependencies(), RecordNewMultiXact(), RecoverPreparedTransactions(), recursive_revoke(), reduce(), reduce_dependencies(), reduce_expanded_ranges(), reform_and_rewrite_tuple(), refresh_by_match_merge(), regression_main(), RehashCatCache(), reindex_all_databases(), reindex_relation(), ReinitializeParallelDSM(), relation_is_updatable(), RelationAddBlocks(), RelationBuildLocalRelation(), RelationBuildPartitionDesc(), RelationBuildPartitionKey(), RelationBuildTriggers(), RelationBuildTupleDesc(), RelationCacheInvalidate(), RelationCacheInvalidateEntry(), RelationGetExclusionInfo(), RelationGetIdentityKeyBitmap(), RelationGetIndexAttOptions(), RelationGetIndexAttrBitmap(), RelationMapFilenumberToOid(), RelationMapOidToFilenumber(), RelationMapOidToFilenumberForDatabase(), RelationMapRemoveMapping(), RelationTruncate(), release_partition(), ReleaseLockIfHeld(), ReleaseSemaphores(), relname(), remap_groupColIdx(), RememberManyTestResources(), remove_dbtablespaces(), remove_gene(), remove_self_join_rel(), remove_self_joins_recurse(), remove_timeout_index(), removeabbrev_cluster(), removeabbrev_datum(), removeabbrev_heap(), removeabbrev_index(), removeabbrev_index_brin(), removeDontCares(), RemoveGXact(), RemoveLocalLock(), removeObjectDependency(), RemoveRoleFromObjectPolicy(), RenameEnumLabel(), RenameRole(), renametrig(), renametrig_partition(), RenumberEnumType(), reorder_function_arguments(), ReorderBufferCopySnap(), ReorderBufferExecuteInvalidations(), ReorderBufferImmediateInvalidation(), ReorderBufferProcessTXN(), reorderqueue_pop(), reorderqueue_push(), repairDependencyLoop(), reparameterize_path(), repeat(), replace_guc_value(), replace_outer_placeholdervar(), replace_outer_var(), replace_token(), ReplicationOriginShmemInit(), ReplicationSlotCleanup(), ReplicationSlotCreate(), ReplicationSlotsComputeLogicalRestartLSN(), ReplicationSlotsComputeRequiredLSN(), ReplicationSlotsComputeRequiredXmin(), ReplicationSlotsCountDBSlots(), ReplicationSlotsDropDBSlots(), ReplicationSlotsShmemInit(), replorigin_advance(), replorigin_get_progress(), replorigin_redo(), replorigin_session_setup(), replorigin_state_clear(), repoint_table_dependencies(), report_unmatched_relation(), reportDependentObjects(), reportErrorPosition(), RequestNamedLWLockTranche(), ReservePrivateRefCountEntry(), ResetCatalogCache(), resetQueryRepresentation(), resetSpGistScanOpaque(), resize(), resize_intArrayType(), resolve_column_ref(), resolve_polymorphic_argtypes(), resolve_polymorphic_tupdesc(), ResourceOwnerEnlarge(), ResourceOwnerForget(), ResourceOwnerForgetLock(), ResourceOwnerReleaseAllOfKind(), restore(), RestoreComboCIDState(), RestoreParamExecParams(), RestoreParamList(), RestoreSlotFromDisk(), results_differ(), reverse_name(), rewriteSearchAndCycle(), rewriteValuesRTE(), rewriteVisibilityMap(), rfmtlong(), ri_Check_Pk_Match(), ri_ExtractValues(), RI_FKey_cascade_del(), RI_FKey_cascade_upd(), RI_FKey_check(), RI_Initial_Check(), ri_KeysEqual(), ri_NullCheck(), RI_PartitionRemove_Check(), ri_restrict(), ri_set(), right_offset(), rmtree(), roles_is_member_of(), rpytime(), rt_cube_size(), run_all_permutations(), run_all_permutations_recurse(), run_named_permutations(), run_permutation(), run_schedule(), runShellCommand(), sanitize_str(), satisfies_hash_partition(), save_ps_display_args(), scalararraysel(), scan_profile(), scanGetItem(), scanPendingInsert(), score_timezone(), scram_SaltedPassword(), search_indexed_tlist_for_var(), search_plan_tree(), SearchCatCacheList(), searchChar(), SearchNamedReplicationSlot(), select_active_windows(), select_common_type_from_oids(), select_div_scale(), select_loop(), selectColorTrigrams(), send_relation_and_attrs(), SendCopyBegin(), SendProcSignal(), SendQuery(), SendRowDescriptionMessage(), sepgsql_audit_log(), sepgsql_compute_avd(), sepgsql_proc_post_create(), sepgsql_relation_drop(), serialize_expr_stats(), SerializeParamList(), SerializeTransactionState(), ServerLoop(), set_append_rel_size(), set_backtrace(), set_join_column_names(), set_rel_width(), set_relation_column_names(), set_status_by_pages(), set_using_names(), set_var_from_str(), setCompoundAffixFlagValue(), SetIndexStorageProperties(), setPathArray(), setPathObject(), setup_background_workers(), setup_dynamic_shared_memory(), setup_pct_info(), setup_regexp_matches(), setup_salt(), setup_test_matches(), SetupLockInTable(), SetXidCommitTsInPage(), shiftList(), shimTriConsistentFn(), shm_mq_sendv(), shm_toc_lookup(), show_binary_results(), show_grouping_set_keys(), show_hash_info(), show_item(), show_trgm(), ShowAllGUCConfig(), ShowTransactionStateRec(), ShutdownWorkersHard(), SICleanupQueue(), SignalBackends(), sigTermHandler(), SIInsertDataEntries(), silly_cmp_tsvector(), simple8b_contains(), simple8b_decode(), simple8b_encode(), SimpleLruWriteAll(), sizebitvec(), sjis2euc_jp(), sjis2mic(), SlabContextCreate(), SlabFindNextBlockListIndex(), SlabReset(), SlabStats(), slot_fill_defaults(), slot_modify_data(), slot_store_data(), slotAllNulls(), SlotExistsInStandbySlotNames(), slotNoNulls(), SlruInternalWritePage(), SlruPhysicalWritePage(), smgr_bulk_flush(), smgrDoPendingDeletes(), smgrdosyncall(), smgrdounlinkall(), smgrinit(), smgropen(), smgrshutdown(), smgrtruncate(), SN_close_env(), SN_create_env(), sort_expanded_ranges(), sortins(), sortouts(), spg_box_quad_inner_consistent(), spg_box_quad_leaf_consistent(), spg_box_quad_picksplit(), spg_kd_inner_consistent(), spg_kd_picksplit(), spg_quad_inner_consistent(), spg_quad_leaf_consistent(), spg_quad_picksplit(), spg_range_quad_inner_consistent(), spg_range_quad_leaf_consistent(), spg_range_quad_picksplit(), spg_text_choose(), spg_text_inner_consistent(), spg_text_picksplit(), spgbeginscan(), spgdoinsert(), spgExtractNodeLabels(), spgFormInnerTuple(), spgFormLeafTuple(), spggettuple(), spgInnerTest(), spgist_name_choose(), spgist_name_inner_consistent(), SpGistGetLeafTupleSize(), SpGistInitMetapage(), SpGistPageAddNewItem(), spgMakeInnerItem(), spgMatchNodeAction(), spgPageIndexMultiDelete(), spgPrepareScanKeys(), spgprocesspending(), spgproperty(), spgRedoMoveLeafs(), spgRedoPickSplit(), spgRedoVacuumLeaf(), spgRedoVacuumRedirect(), spgrescan(), spgSplitNodeAction(), spgUpdateNodeLink(), spgvalidate(), SPI_modifytuple(), SPI_sql_row_to_xmlelement(), SpinlockSemaInit(), split_array(), spread_chromo(), sql_exec(), sql_fn_resolve_param_name(), sqlda_common_total_size(), sqlda_compat_empty_size(), sqrt_var(), standby_desc(), standby_desc_invalidations(), standby_desc_running_xacts(), standby_redo(), StandbyRecoverPreparedTransactions(), StandbyReleaseLockTree(), StandbySlotsHaveCaughtup(), startScan(), startScanKey(), statext_compute_stattarget(), statext_dependencies_build(), statext_dependencies_deserialize(), statext_dependencies_serialize(), statext_mcv_build(), statext_mcv_deserialize(), statext_mcv_serialize(), statext_ndistinct_deserialize(), statext_ndistinct_serialize(), StatsShmemInit(), step_has_blocker(), store_conn_addrinfo(), store_expanded_ranges(), storeGettuple(), StorePartitionKey(), StoreQueryTuple(), StoreRelCheck(), storeRow(), stream_abort_internal(), StreamLogicalLog(), strInArray(), string_to_uuid(), stringzone(), strip_quotes(), sts_begin_parallel_scan(), sts_initialize(), sts_reinitialize(), sub_abs(), subcolorcvec(), subcoloronerow(), subxact_info_add(), SummarizeDbaseRecord(), SummarizeXactRecord(), SyncPostCheckpoint(), SyncRepGetCandidateStandbys(), SyncRepGetNthLatestSyncRecPtr(), SyncRepGetOldestSyncRecPtr(), SyncRepGetSyncRecPtr(), SyncRepUpdateSyncStandbysDefined(), SyncScanShmemInit(), systable_beginscan(), systable_beginscan_ordered(), table_block_relation_size(), tablesample_init(), tarChecksum(), tbm_add_tuples(), tbm_begin_iterate(), tbm_intersect(), tbm_lossify(), tbm_prepare_shared_iterate(), tbm_union(), TerminateOtherDBBackends(), test(), test_atomic_spin_nest(), test_atomic_uint32(), test_atomic_uint64(), test_basic(), test_bloomfilter(), test_config_settings(), test_dsa_basic(), test_dsa_resowners(), test_huge_distances(), test_integerset(), test_nosync(), test_pattern(), test_pipeline_abort(), test_predtest(), test_prepared(), test_radixtree(), test_random(), test_re_execute(), test_resowner_many(), test_resowner_priorities(), test_single_value_and_filler(), test_singlerowmode(), test_spinlock(), test_transaction(), TestConfiguration(), testdelete(), testfind(), text_position_setup(), text_substring(), textarray_to_stringlist(), textarray_to_strvaluelist(), thesaurus_lexize(), threadRun(), tidin(), TidListEval(), timesub(), to_chars(), to_chars_df(), to_chars_f(), toast_build_flattened_tuple(), toast_close_indexes(), toast_delete_external(), toast_flatten_tuple(), toast_flatten_tuple_to_datum(), toast_open_indexes(), toast_save_datum(), toast_tuple_cleanup(), toast_tuple_find_biggest_attribute(), toast_tuple_init(), tokenize_auth_file(), TopologicalSort(), TopoSort(), TransactionIdIsActive(), TransactionIdSetPageStatusInternal(), TransactionIdSetTreeStatus(), TransactionTreeSetCommitTsData(), transformAssignmentIndirection(), transformCallStmt(), transformFkeyCheckAttrs(), transformFkeyGetPrimaryKey(), transformFrameOffset(), TransformGUCArray(), transformIndexConstraint(), transformIndirection(), transformLockingClause(), transformOfType(), transformPartitionRangeBounds(), transformRelOptions(), transformValuesClause(), transformWithClause(), transformXmlExpr(), translate(), transtime(), trgm_presence_map(), triggered_change_notification(), TriggerEnabled(), trigramsMatchGraph(), trim_mergeclauses_for_inner_pathkeys(), try_complete_step(), tryAttachPartitionForeignKey(), TryReuseForeignKey(), ts_accum(), ts_stat_sql(), tsq_mcontains(), tsquery_opr_selec(), tsquery_rewrite_query(), tsqueryrecv(), tsquerysend(), tstoreReceiveSlot_detoast(), tstoreStartupReceiver(), tsvector_concat(), tsvector_delete_arr(), tsvector_delete_by_indices(), tsvector_filter(), tsvector_setweight(), tsvector_setweight_by_filter(), tsvector_strip(), tsvector_to_array(), tsvector_unnest(), tsvector_update_trigger(), tsvectorin(), tsvectorout(), tsvectorrecv(), tsvectorsend(), ttdummy(), tuple_data_split_internal(), tupledesc_match(), TupleDescCopy(), TupleDescGetAttInMetadata(), TupleDescGetDefault(), TupleHashTableHash_internal(), tuplesort_begin_cluster(), tuplesort_begin_heap(), tuplesort_begin_index_btree(), tuplesort_begin_index_gist(), tuplesort_heap_insert(), tuplesort_heap_replace_top(), tuplesort_initialize_shared(), tuplestore_clear(), tuplestore_copy_read_pointer(), tuplestore_end(), tuplestore_puttuple_common(), tuplestore_set_eflags(), tuplestore_trim(), TwoPhaseGetGXact(), TwoPhaseGetXidByVirtualXID(), TwoPhaseShmemInit(), TypeCreate(), TypeShellMake(), tzloadbody(), tzparse(), unicode_assigned(), unicode_is_normalized(), unicode_normalize_func(), union_tuples(), unionkey(), unpack_sql_state(), untransformRelOptions(), update_attstats(), update_leaves(), update_node(), updateAclDependencies(), UpdateIndexRelation(), use_physical_tlist(), utf8_to_iso8859(), utf8_to_win(), uuid_out(), vac_open_indexes(), vacuum_all_databases(), vacuum_one_database(), vacuumLeafPage(), vacuumLeafRoot(), vacuumlo(), vacuumRedirectAndPlaceholder(), validate_pkattnums(), validateDomainConstraint(), validateFkOnDeleteSetColumns(), var_eq_const(), varbit_out(), varchar(), varstr_levenshtein(), vector8_has(), vector8_has_le(), verify_client_proof(), verify_common_type_from_oids(), verify_heap_slot_handler(), verify_manifest_checksum(), verify_message(), verifyPartitionIndexNotNull(), visibilitymap_count(), wait_for_postmaster_start(), wait_for_tests(), wait_on_slots(), WaitForOlderSnapshots(), WaitForParallelWorkersToAttach(), WaitForParallelWorkersToExit(), WaitForParallelWorkersToFinish(), WaitForProcSignalBarrier(), WaitXLogInsertionsToFinish(), WALInsertLockAcquireExclusive(), WALInsertLockRelease(), WalReceiverMain(), WalSndInitStopping(), WalSndRqstFileReload(), WalSndShmemInit(), WalSndWaitStopping(), widget_in(), width_bucket_array_variable(), win_to_utf8(), winsock_strerror(), worker_spi_launch(), write_multirange_data(), write_reconstructed_file(), write_relcache_init_file(), write_relmap_file(), WriteBlockRefTable(), WriteDataChunks(), WriteInt(), writeListPage(), writeNodeArray(), WriteToc(), writezone(), X509_NAME_to_cstring(), xact_desc_assignment(), xact_desc_relations(), xact_desc_stats(), xact_desc_subxacts(), XidCacheRemoveRunningXids(), XLogPrefetcherNextBlock(), XLogRegisterBlock(), XLogRegisterBuffer(), XLogResetInsertion(), XLOGShmemInit(), xmlcomment(), xmlelement(), XmlTableDestroyOpaque(), XmlTableGetValue(), xpath_table(), and zapallsubs().

◆ init

int init = 0

◆ invalid

invalidindex index d is invalid

Definition at line 134 of file isn.c.

Referenced by database_is_invalid_oid(), and index_create().

◆ isn_names

const char* const isn_names[] = {"EAN13/UPC/ISxN", "EAN13/UPC/ISxN", "EAN13", "ISBN", "ISMN", "ISSN", "UPC"}
static

Definition at line 41 of file isn.c.

Referenced by ean2isn(), ean2string(), and string2ean().

◆ j

invalidindex index d is j

Definition at line 74 of file isn.c.

Referenced by _bt_deadblocks(), _bt_killitems(), _bt_preprocess_array_keys(), _bt_preprocess_keys(), _hash_addovflpage(), _ltree_picksplit(), _print_horizontal_line(), aclmembers(), acquire_inherited_sample_rows(), add_base_rels_to_query(), addFkRecurseReferenced(), addFkRecurseReferencing(), addRangeTableEntryForFunction(), addtype(), apply_returning_filter(), apw_load_buffers(), array_contain_compare(), array_extract_slice(), array_insert_slice(), array_out(), array_shuffle_n(), array_slice_size(), associate(), AttachPartitionEnsureIndexes(), BF_set_key(), BlockRefTableEntryMarkBlockModified(), BlockRefTableEntrySetLimitBlock(), BlockRefTableWriteEntry(), bpchar_input(), brtuple_disk_tupdesc(), bt_metap(), bt_multi_page_stats(), bt_page_print_tuples(), bt_page_stats_internal(), build_attnums_array(), build_attrmap_by_name(), build_attrmap_by_position(), build_distinct_groups(), build_sorted_items(), buildACLCommands(), calc_distr(), calc_rank_or(), calc_word_similarity(), ChangeVarNodes_walker(), check_backtrace_functions(), check_duplicates_in_publist(), check_generic_type_consistency(), check_testspec(), CheckAttributeNamesTypes(), checkcondition_gin(), checkWellFormedRecursionWalker(), choose_bitmap_and(), clauselist_apply_dependencies(), collectMatchesForHeapRow(), compute_array_stats(), compute_distinct_stats(), compute_scalar_stats(), compute_tsvector_stats(), convert_prep_stmt_params(), convert_subquery_pathkeys(), CopyTriggerDesc(), count_usable_fds(), create_list_bounds(), create_range_bounds(), createDummyViewAsClause(), CreatePartitionPruneState(), CreateTriggerFiringOn(), cube_enlarge(), d2d(), DeadLockCheck(), decompile_column_index_array(), deconstruct_distribute(), deconstruct_recurse(), DefineIndex(), deparse_lquery(), dependencies_clauselist_selectivity(), dependency_is_fully_matched(), des_init(), DiscreteKnapsack(), div_var(), do_field(), do_header(), dofindsubquery(), DropRelationBuffers(), DropRelationsAllBuffers(), dsa_dump(), dshash_dump(), dumpIndex(), dumpTableSchema(), dumptuples(), enforce_generic_type_consistency(), eqjoinsel_inner(), eqjoinsel_semi(), escape_single_quotes_ascii(), estimate_multivariate_ndistinct(), ExecEndModifyTable(), ExecFilterJunk(), ExecHashTableResetMatchFlags(), ExecIndexAdvanceArrayKeys(), ExecIndexBuildScanKeys(), ExecIndexEvalArrayKeys(), ExecIndexEvalRuntimeKeys(), ExecInitAgg(), ExecInitAppend(), ExecInitFunctionScan(), ExecInitMergeAppend(), ExecScanHashTableForUnmatched(), execute_attr_map_slot(), execute_attr_map_tuple(), expandColorTrigrams(), ExpandConstraints(), ExplainMemberNodes(), extract_rollup_sets(), f2d(), fillRelOptions(), fillTrgm(), find_among(), find_among_b(), find_hash_columns(), find_jointree_node_for_rel(), find_mergeclauses_for_outer_pathkeys(), find_placeholders_recurse(), find_strongest_dependency(), findDependencyLoops(), findDontCares(), findeq(), flagInhAttrs(), flagInhIndexes(), flagInhTables(), FlushRelationsAllBuffers(), ForgetManyTestResources(), format_aggregate_signature(), format_function_signature(), format_node_dump(), FuncnameGetCandidates(), g_cube_picksplit(), g_int_compress(), g_int_decompress(), g_int_picksplit(), g_intbig_picksplit(), generate_bitmap_or_paths(), generate_dependencies_recurse(), get_crosstab_tuplestore(), get_docrep(), get_from_clause_item(), get_qual_for_range(), get_relids_in_jointree(), getColorInfo(), getConstraints(), getDumpableObjects(), getIndexes(), getleapdatetime(), GetPermutation(), getPolicies(), getPublicationNamespaces(), getPublicationTables(), getRightMostDot(), getTableAttrs(), getTokenTypes(), getTriggers(), ghstore_picksplit(), gin_bool_consistent(), gin_extract_hstore_query(), gin_extract_jsonb_query(), gin_extract_tsquery(), ginExtractEntries(), gistchoose(), gistMakeUnionItVec(), gistRelocateBuildBuffersOnSplit(), gistSplitByKey(), gtrgm_picksplit(), gtsquery_picksplit(), gtsvector_picksplit(), has_dangerous_join_using(), has_lock_conflicts(), hash_bitmap_info(), hash_metapage_info(), hash_page_items(), hash_page_stats(), hashagg_recompile_expressions(), hstore_delete_array(), hstore_delete_hstore(), hstore_from_record(), hstoreArrayToPairs(), identify_join_columns(), if(), increment_overflow(), increment_overflow_time(), index_delete_sort(), inet_mcv_join_sel(), init_tour(), initialize_reloptions(), InitializeLWLocks(), InitPlan(), initPopulateTable(), InitProcGlobal(), initValue(), inner_int_contains(), inner_int_inter(), inner_int_overlap(), inner_int_union(), interpt_pp(), jointree_contains_lateral_outer_refs(), JsonbDeepContains(), leader_takeover_tapes(), list_deduplicate_oid(), log_newpages(), lookup_var_attr_stats(), ltree_index(), ltree_picksplit(), ltree_union(), main(), make_row_comparison_op(), make_tsvector(), make_tuple_from_result_row(), make_unique_from_pathkeys(), MakeConfigurationMapping(), markQueryForLocking(), markRelsAsNulledBy(), markRTEForSelectPriv(), mcv_get_match_bitmap(), mda_get_offset_values(), merge_acl_with_grant(), mergeins(), mulPow5divPow2(), mulPow5InvDivPow2(), mulShiftAll(), MultiXactIdExpand(), ndistinct_for_combination(), nocache_index_getattr(), nocachegetattr(), NormalizeSubWord(), OffsetVarNodes_walker(), order_qual_clauses(), output_escaped_str(), outzone(), packGraph(), ParallelBackupStart(), parseOidArray(), parseRelOptions(), parseRelOptionsInternal(), partition_bounds_copy(), partition_bounds_equal(), PartitionPruneFixSubPlanMap(), path_area(), path_distance(), path_inter(), pathkeys_useful_for_merging(), PerformRadiusTransaction(), pg_blocking_pids(), pg_checksum_block(), pg_dependencies_out(), pg_get_constraintdef_worker(), pg_isolation_test_session_is_blocked(), pg_ndistinct_out(), pg_next_dst_boundary(), pg_regcomp(), pg_sha224_final(), pg_sha256_final(), pg_sha384_final(), pg_sha512_final(), pg_stat_get_wal_senders(), pgrowlocks(), pgstatindex_impl(), PGTYPESdate_defmt_asc(), PGTYPEStimestamp_defmt_scan(), planstate_walk_members(), plist_same(), plpgsql_dumptree(), pltcl_SPI_execute_plan(), PLy_cursor_plan(), PLy_spi_execute_plan(), poly_distance(), pqConnectOptions2(), PQconnectPoll(), PQdisplayTuples(), PQprint(), PQprintTuples(), PQunescapeBytea(), prepare_sort_from_pathkeys(), prepareCommandsInPipeline(), preprocess_qual_conditions(), pretty_format_node_dump(), print_aligned_text(), ProcedureCreate(), process_backslash_command(), processExtensionTables(), pull_up_sublinks_jointree_recurse(), pull_up_sublinks_qual_recurse(), pull_up_subqueries_recurse(), qunique(), qunique_arg(), range_gist_picksplit(), rangeTableEntry_used_walker(), read_letter(), record_cmp(), record_eq(), record_image_cmp(), record_image_eq(), reduce_outer_joins_pass1(), reduce_outer_joins_pass2(), remove_gene(), remove_self_joins_recurse(), remove_useless_results_recurse(), removeObjectDependency(), RemoveRoleFromObjectPolicy(), repairDependencyLoop(), replace_vars_in_jointree(), report_invalid_encoding(), report_untranslatable_char(), rfmtlong(), rho(), RI_FKey_cascade_upd(), run_permutation(), satisfies_hash_partition(), scram_SaltedPassword(), select_outer_pathkeys_for_merge(), selectColorTrigrams(), set_join_column_names(), set_relation_column_names(), set_using_names(), SHA256_Transform(), SHA512_Transform(), shm_mq_sendv(), show_binary_results(), show_modifytable_info(), signValue(), silly_cmp_tsvector(), spg_box_quad_inner_consistent(), spg_range_quad_picksplit(), spg_text_inner_consistent(), spg_text_leaf_consistent(), spgist_name_inner_consistent(), spgist_name_leaf_consistent(), spgPrepareScanKeys(), sql_exec(), startScanKey(), statext_mcv_build(), statext_ndistinct_build(), StoreRelCheck(), strlist_to_textarray(), systable_beginscan(), systable_beginscan_ordered(), SystemAttributeByName(), TidQualFromRestrictInfoList(), TopologicalSort(), TopoSort(), TransactionIdIsInProgress(), TransactionTreeSetCommitTsData(), transformFkeyCheckAttrs(), transformFromClauseItem(), transformJoinOnClause(), transformPartitionRangeBounds(), transformRangeTableFunc(), trigramsMatchGraph(), tsq_mcontains(), tsvector_concat(), tsvector_delete_by_indices(), tsvector_filter(), tsvector_setweight(), tsvector_setweight_by_filter(), tsvector_unnest(), tsvectorrecv(), tsvectorsend(), tuplesort_heap_insert(), tuplesort_heap_replace_top(), tzloadbody(), tzparse(), update_leaves(), vacuumLeafPage(), validate_pkattnums(), validateFkOnDeleteSetColumns(), varchar_input(), varstr_levenshtein(), WaitForOlderSnapshots(), WaitForTerminatingWorkers(), WriteBlockRefTable(), writezone(), XidCacheRemoveRunningXids(), and xpath_table().

◆ near

invalidtable invalid table near
Initial value:
{\"%s\", \"%s\"} (pos: %d)",
TABLE[i][0], TABLE[i][1], i)

Definition at line 129 of file isn.c.

◆ PG_MODULE_MAGIC

PG_MODULE_MAGIC

Definition at line 26 of file isn.c.

◆ TABLE_index

const unsigned TABLE_index[10][2]
Initial value:
{
const char *aux1,
*aux2

Definition at line 65 of file isn.c.

Referenced by ean2string(), hyphenate(), and if().

◆ true

◆ x

int x = 0

Definition at line 71 of file isn.c.

Referenced by acosd_q1(), asind_q1(), before(), BF_swap(), bit_in(), bitncmp(), bms_add_member(), bms_del_member(), bms_is_member(), bms_make_singleton(), bms_member_index(), bms_overlap_list(), box_in(), box_recv(), bpcharfastcmp_c(), btfloat4fastcmp(), btfloat8fastcmp(), btint2fastcmp(), btint8fastcmp(), btoidfastcmp(), casecmp(), check_with_filler(), clamp_cardinality_to_long(), cmp(), compareDoubles(), comparison_shim(), complex_in(), computeIterativeZipfian(), construct_point(), cosd_0_to_60(), cosd_q1(), cube_c_f8(), cube_f8(), cube_recv(), div10(), div100(), div1e8(), div5(), do_to_timestamp(), estimate_ln_dweight(), exp_var(), fb(), fc(), fd(), fe(), get_code_decomposition(), get_restricted_token(), if(), int128_add_int64_mul_int64(), int128_compare(), interpret_function_parameter_list(), intset_add_member(), intset_is_member(), k_hashes(), line_interpt_line(), ln_var(), lookup_var_attr_stats(), lseg_crossing(), macaddr_fast_cmp(), main(), my_int128_compare(), myRand(), namefastcmp_c(), namefastcmp_locale(), network_fast_cmp(), NUM_numpart_from_char(), numeric_cmp_abbrev(), numeric_fast_cmp(), numeric_float8_no_overflow(), numeric_int2(), numeric_int4_opt_error(), numeric_int8_opt_error(), numeric_normalize(), numeric_out(), numeric_out_sci(), numeric_pg_lsn(), numeric_send(), numeric_to_char(), numeric_to_number(), outBitmapset(), pair_decode(), pair_encode(), part_bits32_by2(), pg_bswap16(), pg_bswap32(), pg_bswap64(), pg_hypot(), pg_to_ascii(), pgp_elgamal_decrypt(), plperl_destroy_interp(), PLyUnicode_FromScalar(), point_construct(), point_inside(), point_zorder_internal(), print_double(), pub_collist_contains_invalid_column(), rbt_delete_fixup(), rbt_delete_node(), rbt_insert(), rbt_insert_fixup(), rbt_rotate_left(), rbt_rotate_right(), rho(), rightneighbor(), rotl(), sind_0_to_30(), sind_q1(), single_decode(), single_encode(), ssup_datum_int32_cmp(), ssup_datum_unsigned_cmp(), test_empty(), test_huge_distances(), test_pattern(), test_single_value(), test_single_value_and_filler(), timestamp_fastcmp(), transformTableLikeClause(), transformXmlExpr(), updateminmax(), uuid_fast_cmp(), varbit_in(), varbit_out(), varlenafastcmp_locale(), varstr_levenshtein(), varstrfastcmp_c(), xml_out(), xml_out_internal(), xml_send(), and xmlconcat().

◆ y