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

Commit7ac0069

Browse files
committed
A small tweak to some comments for PartitionKeyData
It was not really that obvious that there's meant to be exactly 1 itemin the partexprs List for each zero-valued partattrs element. Someincorrect code using these fields was the cause ofCVE-2018-1052, soit's worthwhile to mention how they should be used in the comments.Author: David Rowley <david.rowley@2ndquadrant.com>
1 parent52d8e89 commit7ac0069

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/include/utils/partcache.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ typedef struct PartitionKeyData
2626
charstrategy;/* partitioning strategy */
2727
int16partnatts;/* number of columns in the partition key */
2828
AttrNumber*partattrs;/* attribute numbers of columns in the
29-
* partition key */
29+
* partition keyor 0 if it's an expr*/
3030
List*partexprs;/* list of expressions in the partitioning
31-
* key,or NIL */
31+
* key,one for each zero-valued partattrs */
3232

3333
Oid*partopfamily;/* OIDs of operator families */
3434
Oid*partopcintype;/* OIDs of opclass declared input data types */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp