Skip to content

Commit 51a0d48

Browse files
committed
Initial commit to the public repository for PostgreSQL Installer
1 parent 210e25a commit 51a0d48

25 files changed

+2828
-2
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "codesign"]
2+
path = codesign
3+
url = https://github.com/2ndQuadrant/postgresql-installer-private
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<installdetails>
2+
<installdir>install_dir</installdir>
3+
<pgport>pg_port</pgport>
4+
<datadir>data_dir</datadir>
5+
</installdetails>
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[Unit]
2+
Description=PostgreSQL 10
3+
After=syslog.target network.target
4+
5+
[Service]
6+
Type=forking
7+
TimeoutSec=120
8+
9+
User=postgres
10+
11+
Environment=PGDATA=data_dir
12+
PIDFILE=data_dir/postmaster.pid
13+
14+
ExecStart=pg_path/bin/pg_ctl -w start -D "data_dir" -o "-p pg_port" -l "data_dir/logfile"
15+
ExecStop=pg_path/bin/pg_ctl stop -m fast -w -D "data_dir"
16+
ExecReload=pg_path/bin/pg_ctl reload -D "data_dir"
17+
18+
[Install]
19+
WantedBy=multi-user.target
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
# This is used for starting up the PostgreSQL
3+
# server
4+
5+
# processname: postgres
6+
# pidfile: postmaster.pid
7+
#
8+
9+
case "$1" in
10+
start)
11+
# Check for postgres already running...
12+
server_status=`sudo su postgres -c 'pg_home/bin/pg_ctl -D data_dir_path -o " -p pg_port" -l log_file status'`
13+
if [[ $server_status == *"server is running"* ]]
14+
then
15+
echo "Server already running."
16+
else
17+
rm -f /tmp/.s.PGSQL.* > /dev/null
18+
echo "Starting postgresql service: "
19+
sudo su postgres -c 'pg_home/bin/pg_ctl -D data_dir_path -w -o " -p pg_port" -l log_file start'
20+
sleep 3
21+
server_status=`sudo su postgres -c 'pg_home/bin/pg_ctl -D data_dir_path -o " -p pg_port" -l log_file status'`
22+
if [[ $server_status == *"server is running"* ]]
23+
then
24+
echo ""
25+
else
26+
echo "Server start failed."
27+
fi
28+
fi
29+
;;
30+
stop)
31+
echo "Stopping postgresql service: "
32+
sudo su postgres -c 'pg_home/bin/pg_ctl -D data_dir_path -o " -p pg_port" -l log_file stop'
33+
sleep 2
34+
echo
35+
;;
36+
status)
37+
sudo su postgres -c 'pg_home/bin/pg_ctl -D data_dir_path -o " -p pg_port" status'
38+
;;
39+
restart)
40+
$0 stop
41+
$0 start
42+
;;
43+
*)
44+
echo "Usage: postgresql {start|stop|status|restart}"
45+
exit 1
46+
esac
47+
48+
exit 0
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
[Unit]
2+
Description=PostgreSQL __PG_MAJOR_VERSION__
3+
After=syslog.target network.target
4+
5+
[Service]
6+
Type=forking
7+
TimeoutSec=120
8+
9+
User=postgres
10+
11+
Environment=PGDATA=data_dir
12+
PIDFILE=data_dir/postmaster.pid
13+
14+
ExecStart=pg_path/bin/pg_ctl -w start -D "data_dir" -o "-p pg_port" -l "data_dir/logfile"
15+
ExecStop=pg_path/bin/pg_ctl stop -m fast -w -D "data_dir"
16+
ExecReload=pg_path/bin/pg_ctl reload -D "data_dir"
17+
18+
[Install]
19+
WantedBy=multi-user.target
6.86 MB
Binary file not shown.
14.1 MB
Binary file not shown.

Language/custom-de.lng

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Installer.Welcome.Title=Setup - PostgreSQL Installer von 2ndQuadrant
2+
Installer.Welcome.Text=Willkommen beim Setup-Assistenten für %1$s.
3+
4+
summary.title=Die Installation, zusammengefasst
5+
summary.intro=Es wird nun installiert
6+
summary.review=Bitte die untenstehenden Angaben prüfen
7+
summary.installdir=Installationsverzeichnis
8+
summary.pg_port=PostgreSQL Port
9+
summary.confirm=Wenn die Angaben korrekt sind, weiter drücken
10+
11+
data_dir.title=Datenverzeichnis
12+
data_dir.description=PostgreSQL Datenverzeichnis
13+
data_dir.explanation=Das Installationsprogramm wird die PostgreSQL-Datenbank in diesem Verzeichnis initialisieren. Fall das Verzeichnis bereits existiert, muss es leer sein.
14+
data_dir.error=Das angegebene Verzeichnis existiert, aber ist nicht leer
15+
16+
pg_port.title=PG Port
17+
pg_port.description=PostgreSQL Server Port
18+
pg_port.explanation=Das Installationsprogramm wird den PostgreSQL-Datenbankserver mit diesem Port initialisieren (nur bei Bedarf ändern)
19+
pg_port.error=Der angegebene Port wird bereits verwendet
20+
21+
progress.32bit_runtime=32bit Laufzeit-Bibliotheken werden installiert
22+
progress.64bit_runtime=64bit Laufzeit-Bibliotheken werden installiert
23+
progress.initdb=Datenbank wird initialisiert
24+
progress.register_service=Windows-Dienst wird installiert
25+
progress.unregister_service=Windows-Dienst wird deinstalliert
26+
progress.start_service=PostgreSQL-Dienst wird gestartet
27+
progress.start_server=Server startet
28+
progress.stop_server=Server wird angehalten
29+
progress.server_consolidation=Warte, bis Server bereit ist
30+
31+
description.postgres=Die fortschrittlichste Open Source Datenbank mit mehr als 15 Jahren aktiver Entwicklung, mit ausgeklügelten Features und Enterprise-Fähigkeiten.
32+
description.orange=Ausführliche Datenvisualisierung for Anfänger und Experten: graphisches und geskriptetes Data Mining, Komponenten für Maschinen-Lernen und zusätzliche Module für Bioinformatik und Text Mining.
33+
description.libreoffice=Die leistungsfähige Office Suite hilft Ihnen, creativer und produktiver zu sein.
34+
35+
existing.title=bestehende Installation erkannt
36+
existing.explanation=Eine bestehende Installation wurde gefunden.
37+
existing.location=Ort
38+
existing.upgraded=Diese Instanz von PostgreSQL wird upgegraded.
39+
40+
password.title=Passwort für Benutzer Postgres
41+
password.description=Bitte das Passwort für Benutzer Postgres eingeben
42+
password.retype=Passwort erneut eingeben
43+
44+
superuser_password.title=Passwort für den Datenbank Superuser
45+
superuser_password.description=Passwort
46+
superuser_password.retype=Passwort erneut eingeben
47+
48+
info.createuser=Erzeuge 'postgres' Benutzer
49+
info.createdatadir=Erzeuge das Datenverzeichnis für den PostgreSQL Server
50+
info.installsample=Intalliere Beispieldatenbank
51+
52+
error.runtime_installation=Unbekannter Fehler bei der Installation von Laufzeitbibliotheken (runtime libraries)

Language/custom-en.lng

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Installer.Welcome.Title=Setup - PostgreSQL Installer by 2ndQuadrant
2+
Installer.Welcome.Text=Welcome to the %1$s Setup Wizard.
3+
4+
summary.title=Installation Summary
5+
summary.intro=You are about to install
6+
summary.review=Please review the below information
7+
summary.installdir=Installation Directory
8+
summary.pg_port=PostgreSQL Port
9+
summary.confirm=Click next if the information is correct
10+
11+
data_dir.title=Data Directory
12+
data_dir.description=PostgreSQL Data Directory
13+
data_dir.explanation=Installer will initialize the PostgreSQL database in this directory. If it already exists, this directory must be empty.
14+
data_dir.error=The specified data directory already exists and is not empty
15+
16+
pg_port.title=PostgreSQL Port
17+
pg_port.description=PostgreSQL Server Port
18+
pg_port.explanation=The installer will initialize the PostgreSQL database server with this port (leave as-is if you are unsure what to enter)
19+
pg_port.error=The specified port is already in use
20+
21+
progress.32bit_runtime=Installing 32-bit runtime libraries
22+
progress.64bit_runtime=Installing 64-bit runtime libraries
23+
progress.initdb=Initializing Database (this may take a while)
24+
progress.register_service=Registering Windows service
25+
progress.unregister_service=Unregistering Windows service
26+
progress.start_service=Starting PostgreSQL service
27+
progress.start_server=Starting up the server
28+
progress.stop_server=Stopping the database server
29+
progress.server_consolidation=Waiting for server to consolidate ...
30+
31+
description.postgres=The world's most advanced open source database with more than 15 years of active development boasting sophisticated features and enterprise readiness.
32+
description.orange=Fruitful and fun data visualization for novice and experts featuring: visual and scripted data mining, components for machine learning, and add-ons for bioinformatics and text mining
33+
description.libreoffice=The most powerful office suite on the market that helps you unleash your creativity and grow your productivity
34+
35+
existing.title=Installation Detected
36+
existing.explanation=An existing installation was detected.
37+
existing.location=Location
38+
existing.upgraded=This instance of PostgreSQL will be upgraded.
39+
40+
password.title=Postgres User Password
41+
password.description=Please enter the postgres user password
42+
password.retype=Re-enter password
43+
44+
superuser_password.title=Password for Database Superuser
45+
superuser_password.description=Password
46+
superuser_password.retype=Re-enter password
47+
48+
info.createuser=Creating 'postgres' user
49+
info.createdatadir=Creating data directory for PostgreSQL server
50+
info.installsample=Installing sample database
51+
52+
error.runtime_installation=Unknown error during installation of runtime libraries

Language/custom-es.lng

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Installer.Welcome.Title=Configuración - PostgreSQL Installer por 2ndQuadrant
2+
Installer.Welcome.Text=Bienvenido al %1$s Asistente de configuración.
3+
4+
summary.title=Resumen de la Instalación
5+
summary.intro=Está a punto de instalar
6+
summary.review=Por favor, revise la siguiente información
7+
summary.installdir=Directorio de instalación
8+
summary.pg_port=Puerto de PostgreSQL
9+
summary.confirm=Haga clic en Siguiente si la información en correcta
10+
11+
data_dir.title=Directorio de datos
12+
data_dir.description=Directorio de datos de PostgreSQL
13+
data_dir.explanation=El instalador inicializará la base de datos PostgreSQL en este directorio. Si ya existe, este directorio debe estar vacío.
14+
data_dir.error=El directorio de datos especificado ya existe y no está vacío
15+
16+
pg_port.title=PG Port
17+
pg_port.description=Puerto del servidor PostgreSQL
18+
pg_port.explanation=El instalador inicializará el servidor de base de datos PostgreSQL con este puerto (Deje sin modificar si no está seguro qué ingresar)
19+
pg_port.error=El puerto especificado ya está en uso
20+
21+
progress.32bit_runtime=Instalando runtime de 32 bits
22+
progress.64bit_runtime=Instalando runtime de 64 bits
23+
progress.initdb=Inicializando la base de datos (esto puede tomar un tiempo)
24+
progress.register_service=Registrando servicio de Windows
25+
progress.unregister_service=Eliminando el registro del servicio de Windows
26+
progress.start_service=Iniciando servicio de PostgreSQL
27+
progress.start_server=Iniciando el servidor
28+
progress.stop_server=Deteniendo el servidor de base de datos
29+
progress.server_consolidation=Esperando que el servidor se consolide ...
30+
31+
description.postgres=La base de datos de código abierto más avanzada del mundo, con más de 15 años de desarrollo activo, que cuenta con características sofisticadas y está lista para el ambiente empresarial.
32+
description.orange=Visualización útil y divertida de datos para novatos y expertos, que incluye: minería de datos visual y por script, componentes para aprendizaje automático, y extensiones para bioinformática y minería de textos
33+
description.libreoffice=La suite ofimática más potente en el mercado que le ayuda a desatar su creatividad y hacer crecer su productividad
34+
35+
existing.title=Instalación previa
36+
existing.explanation=Se detectó una instalación existente.
37+
existing.location=Ubicación
38+
existing.upgraded=Esta instancia de PostgreSQL será actualizada.
39+
40+
password.title=Contraseña del Usuario postgres
41+
password.description=Por favor, ingrese la contraseña del usuario postgres
42+
password.retype=Reingrese la contraseña
43+
44+
superuser_password.title=Contraseña para superusuario de base de datos
45+
superuser_password.description=Contraseña
46+
superuser_password.retype=Reingrese la contraseña
47+
48+
info.createuser=Creando el usuario 'postgres'
49+
info.createdatadir=Creando el directorio de datos para el servidor PostgreSQL
50+
info.installsample=Instalando la base de datos de ejemplo
51+
52+
error.runtime_installation=Error desconocido en instalación de bibliotecas de ejecución

0 commit comments

Comments
 (0)