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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
e3b8530c
Commit
e3b8530c
authored
20 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Readd pg_config --pgxs code.
parent
f0efe264
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
doc/src/sgml/ref/pg_config-ref.sgml
+11
-1
11 additions, 1 deletion
doc/src/sgml/ref/pg_config-ref.sgml
src/bin/pg_config/pg_config.c
+8
-1
8 additions, 1 deletion
src/bin/pg_config/pg_config.c
with
19 additions
and
2 deletions
doc/src/sgml/ref/pg_config-ref.sgml
+
11
−
1
View file @
e3b8530c
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.1
7
200
3/11/29 19:51:39 pgsql
Exp $ -->
<!-- $PostgreSQL: pgsql/doc/src/sgml/ref/pg_config-ref.sgml,v 1.1
8
200
4/08/02 12:34:14 momjian
Exp $ -->
<refentry id="app-pgconfig">
<refentry id="app-pgconfig">
<refmeta>
<refmeta>
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<arg>--includedir-server</arg>
<arg>--includedir-server</arg>
<arg>--libdir</arg>
<arg>--libdir</arg>
<arg>--pkglibdir</arg>
<arg>--pkglibdir</arg>
<arg>--pgxs</arg>
<arg>--configure</arg>
<arg>--configure</arg>
<arg>--version</arg>
<arg>--version</arg>
</group>
</group>
...
@@ -100,6 +101,15 @@
...
@@ -100,6 +101,15 @@
</listitem>
</listitem>
</varlistentry>
</varlistentry>
<varlistentry>
<term><option>--pgxs</option></>
<listitem>
<para>
Print the location of extension makefiles.
</para>
</listitem>
</varlistentry>
<varlistentry>
<varlistentry>
<term><option>--configure</option></>
<term><option>--configure</option></>
<listitem>
<listitem>
...
...
This diff is collapsed.
Click to expand it.
src/bin/pg_config/pg_config.c
+
8
−
1
View file @
e3b8530c
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
*
*
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group
*
*
* $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.
2
2004/08/0
1
1
4:01:36
momjian Exp $
* $PostgreSQL: pgsql/src/bin/pg_config/pg_config.c,v 1.
3
2004/08/0
2
1
2:34:14
momjian Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -43,6 +43,7 @@ help()
...
@@ -43,6 +43,7 @@ help()
printf
(
_
(
" --includedir-server show location of C header files for the server
\n
"
));
printf
(
_
(
" --includedir-server show location of C header files for the server
\n
"
));
printf
(
_
(
" --libdir show location of object code libraries
\n
"
));
printf
(
_
(
" --libdir show location of object code libraries
\n
"
));
printf
(
_
(
" --pkglibdir show location of dynamically loadable modules
\n
"
));
printf
(
_
(
" --pkglibdir show location of dynamically loadable modules
\n
"
));
printf
(
_
(
" --pgxs show location of extension makefile
\n
"
));
printf
(
_
(
" --configure show options given to 'configure' script when
\n
"
));
printf
(
_
(
" --configure show options given to 'configure' script when
\n
"
));
printf
(
_
(
" PostgreSQL was built
\n
"
));
printf
(
_
(
" PostgreSQL was built
\n
"
));
printf
(
_
(
" --version show the PostgreSQL version, then exit
\n
"
));
printf
(
_
(
" --version show the PostgreSQL version, then exit
\n
"
));
...
@@ -81,6 +82,7 @@ main (int argc, char ** argv)
...
@@ -81,6 +82,7 @@ main (int argc, char ** argv)
strcmp
(
argv
[
i
],
"--includedir-server"
)
==
0
||
strcmp
(
argv
[
i
],
"--includedir-server"
)
==
0
||
strcmp
(
argv
[
i
],
"--libdir"
)
==
0
||
strcmp
(
argv
[
i
],
"--libdir"
)
==
0
||
strcmp
(
argv
[
i
],
"--pkglibdir"
)
==
0
||
strcmp
(
argv
[
i
],
"--pkglibdir"
)
==
0
||
strcmp
(
argv
[
i
],
"--pgxs"
)
==
0
||
strcmp
(
argv
[
i
],
"--configure"
)
==
0
)
strcmp
(
argv
[
i
],
"--configure"
)
==
0
)
{
{
/* come back to these later */
/* come back to these later */
...
@@ -136,6 +138,11 @@ main (int argc, char ** argv)
...
@@ -136,6 +138,11 @@ main (int argc, char ** argv)
get_lib_path
(
mypath
,
otherpath
);
get_lib_path
(
mypath
,
otherpath
);
else
if
(
strcmp
(
argv
[
i
],
"--pkglibdir"
)
==
0
)
else
if
(
strcmp
(
argv
[
i
],
"--pkglibdir"
)
==
0
)
get_pkglib_path
(
mypath
,
otherpath
);
get_pkglib_path
(
mypath
,
otherpath
);
else
if
(
strcmp
(
argv
[
i
],
"--pgxs"
)
==
0
)
{
get_pkglib_path
(
mypath
,
otherpath
);
strncat
(
otherpath
,
"/pgxs"
,
MAXPGPATH
-
1
);
}
printf
(
"%s
\n
"
,
otherpath
);
printf
(
"%s
\n
"
,
otherpath
);
}
}
...
...
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