mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-10-03 21:26:50 +02:00
3aa0395d4e
In the v11-era commits that taught genbki.pl to resolve symbolic OID references in the initial catalog data, we didn't bother to make every last reference symbolic; some of the catalogs have so few initial rows that it didn't seem worthwhile. However, the new project policy that OIDs assigned by new patches should be automatically renumberable changes this calculus. A patch that wants to add a row in one of these catalogs would have a problem when the OID it assigns gets renumbered. Hence, do the mop-up work needed to make all OID references in initial data be symbolic, and establish an associated project policy that we'll never again write a hard-wired OID reference there. No catversion bump since the contents of postgres.bki aren't actually changed by this commit. Discussion: https://postgr.es/m/CAH2-WzmMTGMcPuph4OvsO7Ykut0AOCF_i-=eaochT0dd2BN9CQ@mail.gmail.com
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_ts_config_map.h
|
|
* definition of the system catalog for text search token mappings
|
|
* (pg_ts_config_map)
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2019, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/catalog/pg_ts_config_map.h
|
|
*
|
|
* NOTES
|
|
* The Catalog.pm module reads this file and derives schema
|
|
* information.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_TS_CONFIG_MAP_H
|
|
#define PG_TS_CONFIG_MAP_H
|
|
|
|
#include "catalog/genbki.h"
|
|
#include "catalog/pg_ts_config_map_d.h"
|
|
|
|
/* ----------------
|
|
* pg_ts_config_map definition. cpp turns this into
|
|
* typedef struct FormData_pg_ts_config_map
|
|
* ----------------
|
|
*/
|
|
CATALOG(pg_ts_config_map,3603,TSConfigMapRelationId)
|
|
{
|
|
/* OID of configuration owning this entry */
|
|
Oid mapcfg BKI_LOOKUP(pg_ts_config);
|
|
|
|
/* token type from parser */
|
|
int32 maptokentype;
|
|
|
|
/* order in which to consult dictionaries */
|
|
int32 mapseqno;
|
|
|
|
/* dictionary to consult */
|
|
Oid mapdict BKI_LOOKUP(pg_ts_dict);
|
|
} FormData_pg_ts_config_map;
|
|
|
|
typedef FormData_pg_ts_config_map *Form_pg_ts_config_map;
|
|
|
|
#endif /* PG_TS_CONFIG_MAP_H */
|