Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
b04d19f2
Commit
b04d19f2
authored
Feb 28, 2006
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fix PG_VERSION_NUM for different awk -F handling.
parent
c979afb7
No related branches found
Tags
Tags containing commit
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
configure
+3
-1
3 additions, 1 deletion
configure
configure.in
+4
-2
4 additions, 2 deletions
configure.in
doc/src/sgml/libpq.sgml
+52
-1
52 additions, 1 deletion
doc/src/sgml/libpq.sgml
with
59 additions
and
4 deletions
configure
+
3
−
1
View file @
b04d19f2
...
...
@@ -4743,8 +4743,10 @@ fi
fi
# Supply a numeric version string for use by 3rd party add-ons
# awk -F is a regex on some platforms, and not on others, so make "." a tab
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/A-Za-z.*$//' |
$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
tr '.' ' ' |
$AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
cat >>confdefs.h <<_ACEOF
#define PG_VERSION_NUM $PG_VERSION_NUM
...
...
...
...
This diff is collapsed.
Click to expand it.
configure.in
+
4
−
2
View file @
b04d19f2
dnl Process this file with autoconf to produce a configure script.
dnl $PostgreSQL: pgsql/configure.in,v 1.45
2
2006/02/28 2
1:59:19
momjian Exp $
dnl $PostgreSQL: pgsql/configure.in,v 1.45
3
2006/02/28 2
2:34:24
momjian Exp $
dnl
dnl Developers, please strive to achieve this order:
dnl
...
...
@@ -586,8 +586,10 @@ if test "$with_python" = yes; then
fi
# Supply a numeric version string for use by 3rd party add-ons
# awk -F is a regex on some platforms, and not on others, so make "." a tab
PG_VERSION_NUM="`echo "$PACKAGE_VERSION" | sed 's/[A-Za-z].*$//' |
$AWK -F'.' '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
tr '.' ' ' |
$AWK '{printf \"%d%02d%02d\", $1, $2, (NF >= 3) ? $3 : 0}'`"
AC_DEFINE_UNQUOTED(PG_VERSION_NUM, $PG_VERSION_NUM, [PostgreSQL version as a number])
##
...
...
...
...
This diff is collapsed.
Click to expand it.
doc/src/sgml/libpq.sgml
+
52
−
1
View file @
b04d19f2
<!--
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.20
1
200
5/12/26 14:58:04 petere
Exp $
$PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.20
2
200
6/02/28 22:34:24 momjian
Exp $
-->
<chapter id="libpq">
...
...
@@ -4031,6 +4031,57 @@ however.)
</sect1>
<sect1 id="libpq-pgservice">
<title>The Connection Service File</title>
<indexterm zone="libpq-pgservice">
<primary>connection service file</primary>
</indexterm>
<indexterm zone="libpq-pgservice">
<primary>pg_service.conf</primary>
</indexterm>
<para>
The file <filename>pg_service.conf</filename> in the <literal>sysconf</>
directory (typically <filename>/usr/local/pgsql/etc</>) can assocate a
group of libpq connection parameters with a single service name that
can be specified in the libpq connection.
. a user's home directory or the
file referenced by <envar>PGPASSFILE</envar> can contain passwords to
be used if the connection requires a password (and no password has been
specified otherwise). On Microsoft Windows the file is named
<filename>%APPDATA%\postgresql\pgpass.conf</> (where
<filename>%APPDATA%</> refers to the Application Data subdirectory in
the user's profile).
</para>
<para>
This file should contain lines of the following format:
<synopsis>
<replaceable>hostname</replaceable>:<replaceable>port</replaceable>:<replaceable>database</replaceable>:<replaceable>username</replaceable>:<replaceable>password</replaceable>
</synopsis>
Each of the first four fields may be a literal value, or <literal>*</literal>,
which matches anything. The password field from the first line that matches the
current connection parameters will be used. (Therefore, put more-specific
entries first when you are using wildcards.)
If an entry needs to contain <literal>:</literal> or
<literal>\</literal>, escape this character with <literal>\</literal>.
A hostname of <literal>localhost</> matches both <literal>host</> (TCP)
and <literal>local</> (Unix domain socket) connections coming from the
local machine.
</para>
<para>
The permissions on <filename>.pgpass</filename> must disallow any
access to world or group; achieve this by the command
<command>chmod 0600 ~/.pgpass</command>.
If the permissions are less strict than this, the file will be ignored.
(The file permissions are not currently checked on Microsoft Windows,
however.)
</para>
</sect1>
<sect1 id="libpq-ssl">
<title>SSL Support</title>
...
...
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment