|
Rozmiar: 824
Komentarz: + dopisanie o konfiguracji
|
Rozmiar: 1931
Komentarz: + konfiguracja pgsql
|
| Usunięcia zostały oznaczone w ten sposób. | Dodatki zostały oznaczone w ten sposób. |
| Linia 32: | Linia 32: |
| TODO: logowanie, bytea | == Partycja zfs == {{{#!shell numbers=off zfs create -o compress=off -o exec=off -o setuid=off tank/u/local/pgsql }}} == Inicjalizacja bazy danych == {{{#!shell numbers=off chown pgsql:pgsql /usr/local/pgsql su - pgsql -c "initdb -E utf8 -D /usr/local/pgsql" }}} == Podmiana kodowania (bytea) == {{{#!diff numbers=off --- postgresql.conf 2014-06-13 12:08:09.949639394 +0200 +++ postgresql.conf.new 2014-06-13 12:12:52.565622043 +0200 @@ -325,8 +325,8 @@ # 0 disables. # These are relevant when logging to syslog: -#syslog_facility = 'LOCAL0' -#syslog_ident = 'postgres' +syslog_facility = 'LOCAL3' +syslog_ident = 'postgres' # This is only relevant when logging to eventlog (win32): #event_source = 'PostgreSQL' @@ -491,7 +491,7 @@ #statement_timeout = 0 # in milliseconds, 0 is disabled #vacuum_freeze_min_age = 50000000 #vacuum_freeze_table_age = 150000000 -#bytea_output = 'hex' # hex, escape +bytea_output = 'escape' # hex, escape #xmlbinary = 'base64' #xmloption = 'content' }}} |
PostgreSQL
Baza danych na potrzeby np. dspam, czy CMSów.
UWAGA!!! Jeżeli to system 9.x i skorzystaliśmy z native iconv podczas budowania systemu, to konieczne nałożenie patcha na Makefile (dla serwera)
@@ -358,6 +359,12 @@
${WRKSRC}/configure.in
. endif
+.if defined(WITH_ICONV)
+ for dir in `${FIND} ${WRKSRC} -type d -name po`; do \
+ ${REINPLACE_CMD} -e 's/UTF-8\\n/UTF-8/gI' $${dir}/*.po; \
+ done
+.endif
+
do-install:
@for dir in ${INSTALL_DIRS}; do \
cd ${WRKSRC}/$${dir} && \
portupgrade -N databases/postgresql92-client
portupgrade -N databases/postgresql92-server
Konfigurowanie PostgreSQL
Partycja zfs
zfs create -o compress=off -o exec=off -o setuid=off tank/u/local/pgsql
Inicjalizacja bazy danych
chown pgsql:pgsql /usr/local/pgsql
su - pgsql -c "initdb -E utf8 -D /usr/local/pgsql"
Podmiana kodowania (bytea)
--- postgresql.conf 2014-06-13 12:08:09.949639394 +0200
+++ postgresql.conf.new 2014-06-13 12:12:52.565622043 +0200
@@ -325,8 +325,8 @@
# 0 disables.
# These are relevant when logging to syslog:
-#syslog_facility = 'LOCAL0'
-#syslog_ident = 'postgres'
+syslog_facility = 'LOCAL3'
+syslog_ident = 'postgres'
# This is only relevant when logging to eventlog (win32):
#event_source = 'PostgreSQL'
@@ -491,7 +491,7 @@
#statement_timeout = 0 # in milliseconds, 0 is disabled
#vacuum_freeze_min_age = 50000000
#vacuum_freeze_table_age = 150000000
-#bytea_output = 'hex' # hex, escape
+bytea_output = 'escape' # hex, escape
#xmlbinary = 'base64'
#xmloption = 'content'
