1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-11 10:01:57 +03:00

Pre-beta mechanical code beautification.

Run pgindent, pgperltidy, and reformat-dat-files.
I manually fixed a couple of comments that pgindent uglified.
This commit is contained in:
Tom Lane
2022-05-12 15:17:30 -04:00
parent 93909599cd
commit 23e7b38bfe
287 changed files with 5193 additions and 3549 deletions

View File

@ -1123,10 +1123,10 @@ pg_fe_getusername(uid_t user_id, PQExpBuffer errorMessage)
/*
* Some users are using configure --enable-thread-safety-force, so we
* might as well do the locking within our library to protect
* getpwuid(). In fact, application developers can use getpwuid() in
* their application if they use the locking call we provide, or install
* their own locking function using PQregisterThreadLock().
* might as well do the locking within our library to protect getpwuid().
* In fact, application developers can use getpwuid() in their application
* if they use the locking call we provide, or install their own locking
* function using PQregisterThreadLock().
*/
pglock_thread();

View File

@ -203,6 +203,7 @@ pq_verify_peer_name_matches_certificate_ip(PGconn *conn,
match = 1;
}
}
/*
* If they don't have inet_pton(), skip this. Then, an IPv6 address in a
* certificate will cause an error.

View File

@ -6,7 +6,7 @@ use PostgreSQL::Test::Utils;
use Test::More;
# Test PQsslAttribute(NULL, "library")
my ($out, $err) = run_command(['libpq_testclient', '--ssl']);
my ($out, $err) = run_command([ 'libpq_testclient', '--ssl' ]);
if ($ENV{with_ssl} eq 'openssl')
{
@ -14,7 +14,9 @@ if ($ENV{with_ssl} eq 'openssl')
}
else
{
is($err, 'SSL is not enabled', 'PQsslAttribute(NULL, "library") returns NULL');
is( $err,
'SSL is not enabled',
'PQsslAttribute(NULL, "library") returns NULL');
}
done_testing();