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

Commit49b8252

Browse files
committed
Remove incidental md5() function use from test
Replace md5() with sha256() in tests introduced in14ffaec, toallow test to pass in OpenSSL FIPS mode.Reported-by: Tom Lane <tgl@sss.pgh.pa.us>Discussion:https://postgr.es/m/3518736.1743307492@sss.pgh.pa.us
1 parentd6d8054 commit49b8252

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎contrib/amcheck/expected/check_gin.out

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ SELECT setseed(1);
5050

5151
CREATE TABLE "gin_check_text_array"("Column1" text[]);
5252
-- posting trees
53-
INSERT INTO gin_check_text_array select array_agg(md5(round(random()*300)::text)::text) from generate_series(1, 100000) as i group by i % 10000;
53+
INSERT INTO gin_check_text_array select array_agg(sha256(round(random()*300)::text::bytea)::text) from generate_series(1, 100000) as i group by i % 10000;
5454
-- posting leaves
55-
INSERT INTO gin_check_text_array select array_agg(md5(round(random()*300 + 300)::text)::text) from generate_series(1, 10000) as i group by i % 100;
55+
INSERT INTO gin_check_text_array select array_agg(sha256(round(random()*300 + 300)::text::bytea)::text) from generate_series(1, 10000) as i group by i % 100;
5656
CREATE INDEX gin_check_text_array_idx on "gin_check_text_array" USING GIN("Column1");
5757
SELECT gin_index_check('gin_check_text_array_idx');
5858
gin_index_check

‎contrib/amcheck/sql/check_gin.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ DROP TABLE gin_check;
3030
SELECT setseed(1);
3131
CREATETABLE "gin_check_text_array"("Column1"text[]);
3232
-- posting trees
33-
INSERT INTO gin_check_text_arrayselect array_agg(md5(round(random()*300)::text)::text)from generate_series(1,100000)as igroup by i %10000;
33+
INSERT INTO gin_check_text_arrayselect array_agg(sha256(round(random()*300)::text::bytea)::text)from generate_series(1,100000)as igroup by i %10000;
3434
-- posting leaves
35-
INSERT INTO gin_check_text_arrayselect array_agg(md5(round(random()*300+300)::text)::text)from generate_series(1,10000)as igroup by i %100;
35+
INSERT INTO gin_check_text_arrayselect array_agg(sha256(round(random()*300+300)::text::bytea)::text)from generate_series(1,10000)as igroup by i %100;
3636
CREATEINDEXgin_check_text_array_idxon"gin_check_text_array" USING GIN("Column1");
3737
SELECT gin_index_check('gin_check_text_array_idx');
3838

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp