mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 00:03:57 -04:00 
			
		
		
		
	Remove incidental md5() function use from test
Replace md5() with sha256() in tests introduced in 14ffaece0fb5, to allow 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
This commit is contained in:
		
							parent
							
								
									d6d8054dc7
								
							
						
					
					
						commit
						49b82522f1
					
				| @ -50,9 +50,9 @@ SELECT setseed(1); | ||||
| 
 | ||||
| CREATE TABLE "gin_check_text_array"("Column1" text[]); | ||||
| -- posting trees | ||||
| 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; | ||||
| 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; | ||||
| -- posting leaves | ||||
| 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; | ||||
| 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; | ||||
| CREATE INDEX gin_check_text_array_idx on "gin_check_text_array" USING GIN("Column1"); | ||||
| SELECT gin_index_check('gin_check_text_array_idx'); | ||||
|  gin_index_check  | ||||
|  | ||||
| @ -30,9 +30,9 @@ DROP TABLE gin_check; | ||||
| SELECT setseed(1); | ||||
| CREATE TABLE "gin_check_text_array"("Column1" text[]); | ||||
| -- posting trees | ||||
| 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; | ||||
| 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; | ||||
| -- posting leaves | ||||
| 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; | ||||
| 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; | ||||
| CREATE INDEX gin_check_text_array_idx on "gin_check_text_array" USING GIN("Column1"); | ||||
| SELECT gin_index_check('gin_check_text_array_idx'); | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user