mirror of
https://github.com/postgres/postgres.git
synced 2025-10-21 02:52:47 +03:00
Protect against hypothetical memory leaks in RelationGetPartitionKey
Also, fix a comment that commit 8a0596cb65
made obsolete.
Reported-by: Robert Haas
Discussion: http://postgr.es/m/CA+TgmoYbpuUUUp2GhYNwWm0qkah39spiU7uOiNXLz20ASfKYoA@mail.gmail.com
This commit is contained in:
@@ -338,7 +338,7 @@ typedef HashMetaPageData *HashMetaPage;
|
||||
|
||||
/*
|
||||
* When a new operator class is declared, we require that the user supply
|
||||
* us with an amproc procudure for hashing a key of the new type, returning
|
||||
* us with an amproc procedure for hashing a key of the new type, returning
|
||||
* a 32-bit hash value. We call this the "standard" hash procedure. We
|
||||
* also allow an optional "extended" hash procedure which accepts a salt and
|
||||
* returns a 64-bit hash value. This is highly recommended but, for reasons
|
||||
|
Reference in New Issue
Block a user