blob: 13d56c349a6575b69fb9d1753495959f68068dbd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
#
# Example PostgreSQL charsets control file.
#
# Should be placed in $PG_DATA directory.
#
# On the fly recoding charsets, based on client's IP address.
# For example: koi8-u (koi) <-> cp1251 (win) <-> cp866 (alt)
#
# Base charset for backend
# Most Unices use koi8-r(u) as base charset. But Solaris
# use iso8859-5 and some networkless workstations use cp866.
BaseCharset koi
# There are recode table definitions from base charset to
# other. Table names are relative to $PG_DATA directory.
# Tables are taken from Russian Apache <http://apache.lexa.ru>.
RecodeTable koi alt koi-alt.tab
RecodeTable koi win koi-win.tab
RecodeTable koi iso koi-iso.tab
RecodeTable koi koi koi-koi.tab
RecodeTable alt win othertabs/alt-win.tab
RecodeTable alt koi othertabs/alt-koi.tab
RecodeTable iso koi othertabs/iso-koi.tab
# Local loopback
HostCharset 127.0.0.1 koi
# Yet another Unix (maybe ;)
HostCharset 192.168.0.1 koi
# There are Windows on 192.168.1.64 through 192.168.1.95
HostCharset 192.168.1.64/27 win
# There are cp866 (alt) systems on 192.168.2.3 through
# 192.168.2.7 (exept 192.168.2.4 - see below)
HostCharset 192.168.2.3-192.168.2.7 alt
# This is exeption from previous rule!
HostCharset 192.168.2.4 win
#
# Example PostgreSQL charsets control file.
#
# Should be placed in $PG_DATA directory.
#
# On the fly recoding charsets, based on client's IP address.
# For example: koi8-u (koi) <-> cp1251 (win) <-> cp866 (alt)
#
# Base charset for backend
# Most Unices use koi8-r(u) as base charset. But Solaris
# use iso8859-5 and some networkless workstations use cp866.
BaseCharset koi
# There are recode table definitions from base charset to
# other. Table names are relative to $PG_DATA directory.
# Tables are taken from Russian Apache <http://apache.lexa.ru>.
RecodeTable koi alt koi-alt.tab
RecodeTable koi win koi-win.tab
RecodeTable koi iso koi-iso.tab
RecodeTable koi koi koi-koi.tab
RecodeTable alt win othertabs/alt-win.tab
RecodeTable alt koi othertabs/alt-koi.tab
RecodeTable iso koi othertabs/iso-koi.tab
# Local loopback
HostCharset 127.0.0.1 koi
# Yet another Unix (maybe ;)
HostCharset 192.168.0.1 koi
# There are Windows on 192.168.1.64 through 192.168.1.95
HostCharset 192.168.1.64/27 win
# There are cp866 (alt) systems on 192.168.2.3 through
# 192.168.2.7 (exept 192.168.2.4 - see below)
HostCharset 192.168.2.3-192.168.2.7 alt
# This is exeption from previous rule!
HostCharset 192.168.2.4 win
|