Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
d88a850
docs(zh96): bootstrap zh/9.6 build and land P1 A-copy batch (157 files)
Vonng Sep 13, 2026
48f8969
docs(zh96): translate P2 warm-up batch (10 book-order files)
Vonng Sep 13, 2026
8c741a2
docs(zh96): translate P2 batch 2 (5 small-delta files)
Vonng Sep 13, 2026
0274dae
docs(zh96): translate P2 batch 3 (datatype + textsearch)
Vonng Sep 13, 2026
5acb6a5
docs(zh96): translate P2 batch 4 (maintenance + backup + high-availab…
Vonng Sep 13, 2026
b67f7d3
docs(zh96): translate P2 batch 5 (charset + monitoring, deletion-heavy)
Vonng Sep 13, 2026
7311ab6
docs(zh96): translate libpq.sgml (42 hunks, multi-host purge)
Vonng Sep 13, 2026
b55587b
docs(zh96): translate runtime.sgml + install-windows.sgml (43 hunks)
Vonng Sep 13, 2026
88f3f5c
docs(zh96): translate installation.sgml (22 hunks, whole-file)
Vonng Sep 13, 2026
a59aa97
docs(zh96): translate config.sgml (54 hunks, whole-file)
Vonng Sep 14, 2026
da322aa
docs(zh96): translate ddl.sgml (18 hunks, inheritance partitioning re…
Vonng Sep 14, 2026
c78f722
docs(zh96): translate func.sgml (102 hunks, whole-file)
Vonng Sep 14, 2026
965c4a9
docs(zh96): translate xfunc.sgml (22 hunks, whole-file)
Vonng Sep 14, 2026
34f4311
docs(zh96): translate xfunc.sgml + gin.sgml
Vonng Sep 14, 2026
939b4aa
docs(zh96): translate spi.sgml (18 hunks, whole-file)
Vonng Sep 14, 2026
f2bc958
docs(zh96): translate docguide.sgml (15 hunks, whole-file)
Vonng Sep 14, 2026
04f5edc
docs(zh96): P3 ref batch 1 (23 small-hunk reference pages)
Vonng Sep 14, 2026
a465e5b
docs(zh96): P3 ref batch 2 (27 more small-hunk reference pages)
Vonng Sep 14, 2026
c132953
docs(zh96): P3 ref batch 3 (4 more reference pages)
Vonng Sep 14, 2026
9dbe220
docs(zh96): translate P3 ref batch 4 (6 files, <=3 hunks each)
Vonng Sep 14, 2026
c3d4025
docs(zh96): translate P3 ref batch 5a (6 files, 4 hunks each)
Vonng Sep 14, 2026
de46b14
docs(zh96): translate P3 ref batch 5b (7 files, 5 hunks each)
Vonng Sep 14, 2026
cff0f42
docs(zh96): translate P3 ref batch 5c (5 files, 6 hunks each)
Vonng Sep 14, 2026
a382eff
docs(zh96): translate P3 ref batch 5d (alter_domain 8h, alter_sequenc…
Vonng Sep 14, 2026
5b5450e
docs(zh96): translate P3 ref batch 5e (pgbench 10h, pgupgrade/pg_base…
Vonng Sep 14, 2026
ceb4208
docs(zh96): translate P3 ref batch 5f (create_trigger 13h, grant 14h)
Vonng Sep 14, 2026
fbc38df
docs(zh96): translate P3 ref alter_table (14 hunks)
Vonng Sep 14, 2026
5aff197
docs(zh96): translate P3 ref create_table (18 hunks, +10/-361)
Vonng Sep 14, 2026
3c13e1b
docs(zh96): translate P3 ref pg_ctl (27 hunks)
Vonng Sep 14, 2026
ac2e51c
docs(zh96): translate P3 ref psql-ref (58 hunks, +110/-428)
Vonng Sep 14, 2026
6908bb6
docs(zh96): translate root batch A (21 one-hunk files)
Vonng Sep 14, 2026
cb7b31a
docs(zh96): translate root batch B1 (12 files, 1-2 hunks)
Vonng Sep 14, 2026
e01060a
docs(zh96): translate root batch B2 (6 files, 3-4 hunks)
Vonng Sep 14, 2026
c0d5719
docs(zh96): translate root batch B3 (4 files, 5 hunks)
Vonng Sep 14, 2026
821a7a6
docs(zh96): translate root batch C1 (5 files, 6-11 hunks)
Vonng Sep 14, 2026
80f1b38
docs(zh96): translate root batch C2 (plpython 8h, trigger 9h)
Vonng Sep 14, 2026
b6fa3f0
docs(zh96): translate root batch C3 (logicaldecoding 10h, indexam 11h)
Vonng Sep 14, 2026
fbc4c1f
docs(zh96): translate root batch C4 (file-fdw 13h, keywords 13h)
Vonng Sep 14, 2026
8804e25
docs(zh96): translate root client-auth (14 hunks)
Vonng Sep 14, 2026
50afacf
docs(zh96): translate root pgbuffercache + filelist
Vonng Sep 14, 2026
a1d4158
docs(zh96): translate root pltcl (9 hunks, +71/-240)
Vonng Sep 14, 2026
3983ad8
docs(zh96): translate root parallel (18 hunks, +67/-132)
Vonng Sep 14, 2026
7e4adb4
docs(zh96): translate root biblio (20 hunks, +87/-33)
Vonng Sep 14, 2026
978c461
docs(zh96): translate root protocol (33 hunks, +36/-1583)
Vonng Sep 14, 2026
b040166
docs(zh96): translate root catalogs (34 hunks, +20/-1073)
Vonng Sep 14, 2026
62ff694
docs(zh96): translate C-new ref/createlang + ref/droplang (9.6-only a…
Vonng Sep 14, 2026
50b37b5
docs(zh96): translate C-new pg_xlogdump + tsearch2
Vonng Sep 14, 2026
086aa24
docs(zh96): translate C-new pg_resetxlog + pg_receivexlog
Vonng Sep 14, 2026
e07b355
docs(zh96): translate C-new sql.sgml (SQL theory tutorial chapter)
Vonng Sep 14, 2026
1422bd7
docs(zh96): start release-9.6.sgml program (boilerplate + 9.6.24 part…
Vonng Sep 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
10 changes: 10 additions & 0 deletions bin/build_standalone_docsrc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,16 @@ if [[ "${lang}" != "en" ]]; then
"${work_tree}/doc/src/sgml/Makefile"
fi

# Pre-PG10 doc makefiles build HTML via DSSSL (jade) by default. Reroute the
# html target to the XSL pipeline (xslthtml-stamp, osx -> postgres.xml ->
# xsltproc chunked HTML) that those makefiles already provide, matching what
# PG10+ do natively. The guard is a no-op for PG10 and later.
if grep -q '^xslthtml-stamp:' "${work_tree}/doc/src/sgml/Makefile"; then
sed -i.bak \
-e 's/^html: html-stamp$/html: xslthtml-stamp/' \
"${work_tree}/doc/src/sgml/Makefile"
fi

# Incremental generated-text overlays are kept with each Chinese source.
# Generate from the selected upstream inputs before applying exact-hash edits.
if [[ "${lang}" == "zh" && -f "${doc_src_root}/localize-generated.py" ]]; then
Expand Down
24 changes: 24 additions & 0 deletions zh/9.6/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Stuff shipped in tarballs
/html/
/html-stamp
/man1/
/man3/
/man7/
/man-stamp
# Other popular build targets
/INSTALL
/postgres-US.pdf
/postgres-A4.pdf
/postgres.html
/postgres.txt
# GENERATED_SGML
/features-supported.sgml
/features-unsupported.sgml
/errcodes-table.sgml
/version.sgml
# Assorted byproducts from building the above
/postgres.xml
/INSTALL.html
/INSTALL.xml
/postgres-US.fo
/postgres-A4.fo
78 changes: 78 additions & 0 deletions zh/9.6/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
# zh/9.6/Makefile

REPO_ROOT := $(abspath $(CURDIR)/../..)
DOC_VERSION := $(notdir $(CURDIR))
PG_VERSION ?= 9.6.24
# Official 9.6.24 release package, checksum pinned from en/SOURCES.json.
PGDOC_SOURCE_ARCHIVE ?= $(REPO_ROOT)/.cache/upstream/postgresql-9.6.24.tar.bz2
PGDOC_SOURCE_SHA256 ?= aeb7a196be3ebed1a7476ef565f39722187c108dd47da7489be9c4fcae982ace
export PGDOC_SOURCE_ARCHIVE PGDOC_SOURCE_SHA256
# PG9.x uses DocBook SGML 4.2 and OpenSP; its doc makefile defaults html to
# DSSSL/jade, so build_standalone_docsrc.sh reroutes html to the XSL pipeline.
PGDOC_SGML_DEPS := $(REPO_ROOT)/tmp/pg10-13-from-14/20260909-150220/agents/archive_build/deps
OSX ?= $(PGDOC_SGML_DEPS)/bin/osx
NSGMLS ?= $(PGDOC_SGML_DEPS)/bin/onsgmls
SGML_CATALOG_FILES ?= $(PGDOC_SGML_DEPS)/sgml-unicode.catalog
SP_ENCODING ?= UTF-8
SP_CHARSET_FIXED ?= YES
export OSX NSGMLS SGML_CATALOG_FILES SP_ENCODING SP_CHARSET_FIXED
DOC_LANG := $(notdir $(abspath $(CURDIR)/..))

BUILD_SCRIPT := $(REPO_ROOT)/bin/build_standalone_docsrc.sh
PDF_SCRIPT := $(REPO_ROOT)/bin/build_standalone_pdfsrc.sh
DEFAULT_BUILD_OUT := $(CURDIR)/html
BUILD_OUT ?= $(DEFAULT_BUILD_OUT)
PAPER ?= A4
PDF_OUT ?= $(REPO_ROOT)/tmp/pdf/$(DOC_LANG)/postgresql-$(DOC_VERSION)-$(DOC_LANG)-$(PAPER).pdf
PYTHON ?= python3
HOST ?= 127.0.0.1
PORT ?= 8000

# Files generated during build (not checked into repo)
GENERATED_FILES := version.sgml pgdoccn-notes.sgml postgres-full.xml

.PHONY: all html pdf clean clean-pdf distclean s serve check-deps show-config

all: html

html:
@"$(BUILD_SCRIPT)" "$(CURDIR)" "$(DOC_LANG)" "$(PG_VERSION)" "$(BUILD_OUT)"

pdf:
@"$(PDF_SCRIPT)" "$(CURDIR)" "$(DOC_LANG)" "$(PG_VERSION)" "$(PDF_OUT)" "$(PAPER)"

distclean: clean clean-pdf

s: serve
serve:
@echo "Serving $(BUILD_OUT) at http://$(HOST):$(PORT)/"
@cd "$(BUILD_OUT)" && "$(PYTHON)" -m http.server "$(PORT)" --bind "$(HOST)"

c: clean
clean:
rm -rf "$(BUILD_OUT)"

clean-pdf:
rm -f "$(PDF_OUT)"

check-deps:
@echo "Checking build dependencies ..."
@command -v xmllint >/dev/null 2>&1 || { echo "MISSING: xmllint (brew install libxml2)"; exit 1; }
@command -v xsltproc >/dev/null 2>&1 || { echo "MISSING: xsltproc (brew install libxslt)"; exit 1; }
@command -v rsync >/dev/null 2>&1 || { echo "MISSING: rsync"; exit 1; }
@command -v java >/dev/null 2>&1 || { echo "MISSING: java"; exit 1; }
@command -v fc-match >/dev/null 2>&1 || { echo "MISSING: fc-match (brew install fontconfig)"; exit 1; }
@echo "All dependencies found."

show-config:
@echo "doc_dir=$(CURDIR)"
@echo "lang=$(DOC_LANG)"
@echo "version=$(DOC_VERSION)"
@echo "pg_version=$(PG_VERSION)"
@echo "pgdoc_source_archive=$(PGDOC_SOURCE_ARCHIVE)"
@echo "pgdoc_source_sha256=$(PGDOC_SOURCE_SHA256)"
@echo "build_out=$(BUILD_OUT)"
@echo "pdf_out=$(PDF_OUT)"
@echo "paper=$(PAPER)"
@echo "host=$(HOST)"
@echo "port=$(PORT)"
46 changes: 46 additions & 0 deletions zh/9.6/README.links
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!-- doc/src/sgml/README.links -->

Linking within SGML documents can be confusing, so here is a summary:


Intra-document Linking
----------------------

<xref>
use to get chapter/section number from the title of the target
link, or xreflabel if defined at the target, or refentrytitle if target
is a refentry; has no close tag
http://www.oasis-open.org/docbook/documentation/reference/html/xref.html

<link>
use to supply text for the link, requires </link>
http://www.oasis-open.org/docbook/documentation/reference/html/link.html

linkend=
controls the target of the link/xref, required

endterm=
for <xref>, allows the text of the link/xref to be taken from a
different link target title


External Linking
----------------

<ulink>
like <link>, but uses a URL (not a document target); requires
</ulink>; if no text is specified, the URL appears as the link
text
http://www.oasis-open.org/docbook/documentation/reference/html/ulink.html

url=
used by <ulink> to specify the URL, required


Guidelines
----------

o If you want to supply text, use <link>, else <xref>
o Do not use text with <ulink> so the URL appears in printed output
o Specific nouns like GUC variables, SQL commands, and contrib modules
usually have xreflabels
Loading