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

Commitaf38498

Browse files
committed
Move hash_any prototype from access/hash.h to utils/hashutils.h
... as well as its implementation from backend/access/hash/hashfunc.c tobackend/utils/hash/hashfn.c.access/hash is the place for the hash index AM, not really appropriatefor generic facilities, which is what hash_any is; having things the oldway meant that anything using hash_any had to include the AM's includefile, pointlessly polluting its namespace with unrelated, unnecessarycruft.Also move the HTEqual strategy number to access/stratnum.h fromaccess/hash.h.To avoid breaking third-party extension code, add an #include"utils/hashutils.h" to access/hash.h. (An easily removed line bycommitters who enjoy their asbestos suits to protect them from angryextension authors.)Discussion:https://postgr.es/m/201901251935.ser5e4h6djt2@alvherre.pgsql
1 parentb212245 commitaf38498

40 files changed

+690
-687
lines changed

‎contrib/citext/citext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
*/
44
#include"postgres.h"
55

6-
#include"access/hash.h"
76
#include"catalog/pg_collation.h"
87
#include"utils/builtins.h"
98
#include"utils/formatting.h"
9+
#include"utils/hashutils.h"
1010
#include"utils/varlena.h"
1111

1212
PG_MODULE_MAGIC;

‎contrib/hstore/hstore_op.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
*/
44
#include"postgres.h"
55

6-
#include"access/hash.h"
76
#include"access/htup_details.h"
87
#include"catalog/pg_type.h"
98
#include"funcapi.h"
109
#include"utils/builtins.h"
10+
#include"utils/hashutils.h"
1111
#include"utils/memutils.h"
1212

1313
#include"hstore.h"

‎contrib/pg_stat_statements/pg_stat_statements.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
#include<sys/stat.h>
6262
#include<unistd.h>
6363

64-
#include"access/hash.h"
6564
#include"catalog/pg_authid.h"
6665
#include"executor/instrument.h"
6766
#include"funcapi.h"
@@ -78,6 +77,7 @@
7877
#include"tcop/utility.h"
7978
#include"utils/acl.h"
8079
#include"utils/builtins.h"
80+
#include"utils/hashutils.h"
8181
#include"utils/memutils.h"
8282

8383
PG_MODULE_MAGIC;

‎contrib/sepgsql/uavc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
*/
1313
#include"postgres.h"
1414

15-
#include"access/hash.h"
1615
#include"catalog/pg_proc.h"
1716
#include"commands/seclabel.h"
1817
#include"storage/ipc.h"
1918
#include"utils/guc.h"
19+
#include"utils/hashutils.h"
2020
#include"utils/memutils.h"
2121

2222
#include"sepgsql.h"

‎src/backend/access/common/tupdesc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
#include"postgres.h"
2121

22-
#include"access/hash.h"
2322
#include"access/htup_details.h"
2423
#include"access/tupdesc_details.h"
2524
#include"catalog/pg_collation.h"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp