mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-31 10:30:33 +03:00 
			
		
		
		
	This enables SCRAM authentication for dblink (using dblink_fdw) when connecting to a foreign server without having to store a plain-text password on user mapping options This uses the same approach as it was implemented for postgres_fdw in commit761c79508e. (It also contains the equivalent of the subsequent fixes76563f88cfand d2028e9bbc1.) Author: Matheus Alcantara <mths.dev@pm.me> Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com> Discussion: https://www.postgresql.org/message-id/flat/CAFY6G8ercA1KES%3DE_0__R9QCTR805TTyYr1No8qF8ZxmMg8z2Q%40mail.gmail.com
		
			
				
	
	
		
			45 lines
		
	
	
		
			921 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			921 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| # Copyright (c) 2022-2025, PostgreSQL Global Development Group
 | |
| 
 | |
| dblink_sources = files(
 | |
|   'dblink.c',
 | |
| )
 | |
| 
 | |
| if host_system == 'windows'
 | |
|   dblink_sources += rc_lib_gen.process(win32ver_rc, extra_args: [
 | |
|     '--NAME', 'dblink',
 | |
|     '--FILEDESC', 'dblink - connect to other PostgreSQL databases',])
 | |
| endif
 | |
| 
 | |
| dblink = shared_module('dblink',
 | |
|   dblink_sources,
 | |
|   kwargs: contrib_mod_args + {
 | |
|     'dependencies': contrib_mod_args['dependencies'] + [libpq],
 | |
|   },
 | |
| )
 | |
| contrib_targets += dblink
 | |
| 
 | |
| install_data(
 | |
|   'dblink.control',
 | |
|   'dblink--1.0--1.1.sql',
 | |
|   'dblink--1.1--1.2.sql',
 | |
|   'dblink--1.2.sql',
 | |
|   kwargs: contrib_data_args,
 | |
| )
 | |
| 
 | |
| tests += {
 | |
|   'name': 'dblink',
 | |
|   'sd': meson.current_source_dir(),
 | |
|   'bd': meson.current_build_dir(),
 | |
|   'regress': {
 | |
|     'sql': [
 | |
|       'dblink',
 | |
|     ],
 | |
|     'regress_args': ['--dlpath', meson.build_root() / 'src/test/regress'],
 | |
|   },
 | |
|   'tap': {
 | |
|     'tests': [
 | |
|       't/001_auth_scram.pl',
 | |
|     ],
 | |
|   },
 | |
| }
 |