Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
cd1f4087
Commit
cd1f4087
authored
Aug 16, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move pg_controldata from /contrib to src/bin.
parent
7ffe65fe
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
116 additions
and
37 deletions
+116
-37
contrib/pg_controldata/README.pg_controldata
contrib/pg_controldata/README.pg_controldata
+0
-32
doc/src/sgml/ref/allfiles.sgml
doc/src/sgml/ref/allfiles.sgml
+2
-1
doc/src/sgml/ref/pg_controldata.sgml
doc/src/sgml/ref/pg_controldata.sgml
+74
-0
doc/src/sgml/ref/psql-ref.sgml
doc/src/sgml/ref/psql-ref.sgml
+2
-2
doc/src/sgml/reference.sgml
doc/src/sgml/reference.sgml
+2
-1
src/bin/pg_controldata/Makefile
src/bin/pg_controldata/Makefile
+35
-0
src/bin/pg_controldata/pg_controldata.c
src/bin/pg_controldata/pg_controldata.c
+1
-1
No files found.
contrib/pg_controldata/README.pg_controldata
deleted
100644 → 0
View file @
7ffe65fe
I had a need to read such things as the backend locale and the catalog
version number from the current database, and couldn't find any existing
program to do that.
The attached utility produces output like this:
$ pg_controldata
pg_control version number: 71
Catalog version number: 200101061
Database state: IN_PRODUCTION
pg_control last modified: Sat Mar 10 00:07:55 2001
Current log file id: 0
Next log file segment: 9
Latest checkpoint location: 0/88CAA20
Prior checkpoint location: 0/70A5D48
Latest checkpoint's REDO location: 0/88CAA20
Latest checkpoint's UNDO location: 0/0
Latest checkpoint's StartUpID: 22
Latest checkpoint's NextXID: 4711
Latest checkpoint's NextOID: 444704
Time of latest checkpoint: Sat Mar 10 00:07:52 2001
Database block size: 8192
Blocks per segment of large relation: 131072
LC_COLLATE: C
LC_CTYPE: C
To access the pg_control file, the program must be run as the Postgres user,
and PGDATA must be set correctly in its environment.
--
Oliver Elphick <olly@lfix.co.uk>
doc/src/sgml/ref/allfiles.sgml
View file @
cd1f4087
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/allfiles.sgml,v 1.4
4 2002/08/04 04:31:44
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/allfiles.sgml,v 1.4
5 2002/08/16 20:34:06
momjian Exp $
PostgreSQL documentation
Complete list of usable sgml source files in this directory.
-->
...
...
@@ -132,6 +132,7 @@ Complete list of usable sgml source files in this directory.
<!entity ipcclean system "ipcclean.sgml">
<!entity pgAccess system "pgaccess-ref.sgml">
<!entity pgConfig system "pg_config-ref.sgml">
<!entity pgControldata system "pg_controldata.sgml">
<!entity pgCtl system "pg_ctl-ref.sgml">
<!entity pgDump system "pg_dump.sgml">
<!entity pgDumpall system "pg_dumpall.sgml">
...
...
doc/src/sgml/ref/pg_controldata.sgml
0 → 100644
View file @
cd1f4087
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/pg_controldata.sgml,v 1.1 2002/08/16 20:34:06 momjian Exp $
PostgreSQL documentation
-->
<refentry id="APP-PGCONTROLDATA">
<refmeta>
<refentrytitle id="APP-PGCONTROLDATA-TITLE"><application>pg_controldata</application></refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo>Application</refmiscinfo>
</refmeta>
<refnamediv>
<refname>pg_controldata</refname>
<refpurpose>display server-wide control information</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>pg_controldata</command>
<arg><replaceable class="parameter">datadir</replaceable></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1 id="R1-APP-PGCONTROLDATA-1">
<title>Description</title>
<para>
<command>pg_controldata</command> returns information initialized during
<application>initdb</>. such as the catalog version and server encoding.
It also shows information about write-ahead logging and checkpoint
processing. This information is server-wide, and not specific to any one
database.
</para>
<para>
You can specify the data directory on the command line, or use
the environment variable <envar>PGDATA</>.
</para>
</refsect1>
<refsect1>
<title>Environment</title>
<variablelist>
<varlistentry>
<term><envar>PGDATA</envar></term>
<listitem>
<para>
Default data direction location
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:nil
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
sgml-parent-document:nil
sgml-default-dtd-file:"../reference.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:"/usr/lib/sgml/catalog"
sgml-local-ecat-files:nil
End:
-->
doc/src/sgml/ref/psql-ref.sgml
View file @
cd1f4087
<!--
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.7
1 2002/08/10 19:35:00 tgl
Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/ref/psql-ref.sgml,v 1.7
2 2002/08/16 20:34:06 momjian
Exp $
PostgreSQL documentation
-->
...
...
doc/src/sgml/reference.sgml
View file @
cd1f4087
<!-- reference.sgml
$Header: /cvsroot/pgsql/doc/src/sgml/reference.sgml,v 1.3
3 2002/08/04 04:31:44
momjian Exp $
$Header: /cvsroot/pgsql/doc/src/sgml/reference.sgml,v 1.3
4 2002/08/16 20:34:06
momjian Exp $
PostgreSQL Reference Manual
-->
...
...
@@ -201,6 +201,7 @@ Disable this chapter until we have more functions documented.
&initlocation;
&ipcclean;
&pgCtl;
&pgControldata;
&postgres;
&postmaster;
...
...
src/bin/pg_controldata/Makefile
0 → 100644
View file @
cd1f4087
#-------------------------------------------------------------------------
#
# Makefile for src/bin/pg_controldata
#
# Copyright (c) 1998, PostgreSQL Global Development Group
#
# $Header: /cvsroot/pgsql/src/bin/pg_controldata/Makefile,v 1.1 2002/08/16 20:34:06 momjian Exp $
#
#-------------------------------------------------------------------------
subdir
=
src/bin/pg_controldata
top_builddir
=
../../..
include
$(top_builddir)/src/Makefile.global
OBJS
=
pg_controldata.o pg_crc.o
pg_crc.c
:
$(top_builddir)/src/backend/utils/hash/pg_crc.c
rm
-f
$@
&&
$(LN_S)
$<
.
all
:
submake-libpq submake-libpgport pg_controldata
pg_controldata
:
$(OBJS)
$(CC)
$(CFLAGS)
$^
$(libpq)
$(LDFLAGS)
$(LIBS)
-o
$@
install
:
all installdirs
$(INSTALL_PROGRAM)
pg_controldata
$(X)
$(DESTDIR)$(bindir)
/pg_controldata
$(X)
installdirs
:
$(mkinstalldirs)
$(DESTDIR)$(bindir)
uninstall
:
rm
-f
$(DESTDIR)$(bindir)
/pg_controldata
$(X)
clean distclean maintainer-clean
:
rm
-f
pg_controldata
$(X)
pg_controldata.o pg_crc.o pg_crc.c
contrib
/pg_controldata/pg_controldata.c
→
src/bin
/pg_controldata/pg_controldata.c
View file @
cd1f4087
...
...
@@ -6,7 +6,7 @@
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
* licence: BSD
*
* $Header: /cvsroot/pgsql/
contrib/pg_controldata/Attic/pg_controldata.c,v 1.7 2002/08/14 03:01:43
momjian Exp $
* $Header: /cvsroot/pgsql/
src/bin/pg_controldata/pg_controldata.c,v 1.1 2002/08/16 20:34:06
momjian Exp $
*/
#include "postgres.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment