From 4f85f66469594996584d50e6a940b5ba873aa713 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sun, 8 Apr 2018 15:55:49 -0400 Subject: [PATCH] Cosmetic cleanups in initial catalog data. Write ',' and ';' for typdelim values instead of the obscurantist ASCII octal equivalents. Not sure why anybody ever thought the latter were better; maybe it had something to do with lack of a better quoting convention, twenty-plus years ago? Reassign a couple of high-numbered OIDs that were left in during yesterday's mad rush to commit stuff of uncertain internal temperature. The latter requires a catversion bump, though the former wouldn't since the end-result catalog data is unchanged. --- src/include/catalog/catversion.h | 2 +- src/include/catalog/pg_proc.dat | 4 ++-- src/include/catalog/pg_type.dat | 8 ++++---- src/include/catalog/pg_type.h | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index dd69816f9e..58ee94b3b1 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 201804073 +#define CATALOG_VERSION_NO 201804081 #endif diff --git a/src/include/catalog/pg_proc.dat b/src/include/catalog/pg_proc.dat index ad685f7dce..f3b9c33932 100644 --- a/src/include/catalog/pg_proc.dat +++ b/src/include/catalog/pg_proc.dat @@ -8957,7 +8957,7 @@ { oid => '5006', descr => 'transform to tsquery', proname => 'phraseto_tsquery', procost => '100', prorettype => 'tsquery', proargtypes => 'regconfig text', prosrc => 'phraseto_tsquery_byid' }, -{ oid => '8889', descr => 'transform to tsquery', +{ oid => '5007', descr => 'transform to tsquery', proname => 'websearch_to_tsquery', procost => '100', prorettype => 'tsquery', proargtypes => 'regconfig text', prosrc => 'websearch_to_tsquery_byid' }, { oid => '3749', descr => 'transform to tsvector', @@ -8973,7 +8973,7 @@ proname => 'phraseto_tsquery', procost => '100', provolatile => 's', prorettype => 'tsquery', proargtypes => 'text', prosrc => 'phraseto_tsquery' }, -{ oid => '8890', descr => 'transform to tsquery', +{ oid => '5009', descr => 'transform to tsquery', proname => 'websearch_to_tsquery', procost => '100', provolatile => 's', prorettype => 'tsquery', proargtypes => 'text', prosrc => 'websearch_to_tsquery' }, diff --git a/src/include/catalog/pg_type.dat b/src/include/catalog/pg_type.dat index 3c2c813756..ae7e89b322 100644 --- a/src/include/catalog/pg_type.dat +++ b/src/include/catalog/pg_type.dat @@ -198,9 +198,9 @@ typstorage => 'x' }, { oid => '603', descr => 'geometric box \'(lower left,upper right)\'', typname => 'box', typlen => '32', typbyval => 'f', typcategory => 'G', - typdelim => '\073', typelem => 'point', typarray => '_box', - typinput => 'box_in', typoutput => 'box_out', typreceive => 'box_recv', - typsend => 'box_send', typalign => 'd' }, + typdelim => ';', typelem => 'point', typarray => '_box', typinput => 'box_in', + typoutput => 'box_out', typreceive => 'box_recv', typsend => 'box_send', + typalign => 'd' }, { oid => '604', descr => 'geometric polygon \'(pt1,...)\'', typname => 'polygon', typlen => '-1', typbyval => 'f', typcategory => 'G', typarray => '_polygon', typinput => 'poly_in', typoutput => 'poly_out', @@ -402,7 +402,7 @@ typanalyze => 'array_typanalyze', typalign => 'd', typstorage => 'x' }, { oid => '1020', typname => '_box', typlen => '-1', typbyval => 'f', typcategory => 'A', - typdelim => '\073', typelem => 'box', typinput => 'array_in', + typdelim => ';', typelem => 'box', typinput => 'array_in', typoutput => 'array_out', typreceive => 'array_recv', typsend => 'array_send', typanalyze => 'array_typanalyze', typalign => 'd', typstorage => 'x' }, { oid => '1021', diff --git a/src/include/catalog/pg_type.h b/src/include/catalog/pg_type.h index ade771ddd3..8f301db91c 100644 --- a/src/include/catalog/pg_type.h +++ b/src/include/catalog/pg_type.h @@ -93,7 +93,7 @@ CATALOG(pg_type,1247,TypeRelationId) BKI_BOOTSTRAP BKI_ROWTYPE_OID(71,TypeRelati bool typisdefined BKI_DEFAULT(t); /* delimiter for arrays of this type */ - char typdelim BKI_DEFAULT("\054"); + char typdelim BKI_DEFAULT(','); /* associated pg_class OID if a composite type, else 0 */ Oid typrelid BKI_DEFAULT(0);