Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3727afa

Browse files
committed
Fix pg_type.typlen for newly-revived line type.
Commit261c7d4 removed the "m" fieldfrom struct LINE, but neglected to make pg_type.h's idea of the type'ssize match. This resulted in reading past the end of palloc'd LINEvalues when inserting them into tuples etc. In principle that couldcause a SIGSEGV, though the odds of detectable problems seem low.Bump catversion since this makes an incompatible on-disk format change.Note that if the line type had been in use in the field, this wouldbreak pg_upgrade'ability of databases containing line values; butit seems unlikely that there are any (they'd have had to be compiledwith -DENABLE_LINE_TYPE).Spotted by Andres Freund.
1 parentb2f7bd7 commit3727afa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/include/catalog/catversion.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,6 @@
5353
*/
5454

5555
/*yyyymmddN */
56-
#defineCATALOG_VERSION_NO201404241
56+
#defineCATALOG_VERSION_NO201405051
5757

5858
#endif

‎src/include/catalog/pg_type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ DATA(insert OID = 604 ( polygon PGNSP PGUID -1 f b G f t \054 0 0 1027 poly_
392392
DESCR("geometric polygon '(pt1,...)'");
393393
#definePOLYGONOID604
394394

395-
DATA(insertOID=628 (linePGNSPPGUID32fbGft \0540701629line_inline_outline_recvline_send---dpf0-100_null__null__null_ ));
395+
DATA(insertOID=628 (linePGNSPPGUID24fbGft \0540701629line_inline_outline_recvline_send---dpf0-100_null__null__null_ ));
396396
DESCR("geometric line");
397397
#defineLINEOID628
398398
DATA(insertOID=629 (_linePGNSPPGUID-1fbAft \05406280array_inarray_outarray_recvarray_send--array_typanalyzedxf0-100_null__null__null_ ));

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp