~ubuntu-branches/ubuntu/vivid/postfix/vivid-proposed

« back to all changes in this revision

Viewing changes to html/PGSQL_README.html

Tags: upstream-2.2.6
ImportĀ upstreamĀ versionĀ 2.2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
# The database name on the servers.
89
89
dbname = customer_database
90
90
 
91
 
# The table name.
 
91
# Postfix 2.2 and later The SQL query template. See <a href="pgsql_table.5.html">pgsql_table(5)</a>.
 
92
query = SELECT forw_addr FROM mxaliases WHERE alias='%s' AND status='paid'
 
93
 
 
94
# For Postfix releases prior to 2.2. See <a href="pgsql_table.5.html">pgsql_table(5)</a> for details.
 
95
select_field = forw_addr
92
96
table = mxaliases
93
 
 
94
 
# Query components, see below.
95
 
select_field = forw_addr
96
97
where_field = alias
97
 
 
98
 
# You may specify additional_conditions or leave this empty.
99
 
additional_conditions = and status = 'paid'
100
 
 
101
 
# The above variables will result in a query of the form:
102
 
#
103
 
# select forw_addr from mxaliases where alias = '$lookup' and status = 'paid'
104
 
#
105
 
# ($lookup is escaped so if it contains single quotes or other odd
106
 
# characters, it will not cause problems).
107
 
#
108
 
# You may also override the built-in SELECT template. See <a href="pgsql_table.5.html">pgsql_table(5)</a>
109
 
# for details.
 
98
# Don't forget the leading "AND"!
 
99
additional_conditions = AND status = 'paid'
110
100
</pre>
111
101
 
112
102
<h2>Using mirrored databases</h2>
130
120
<ul>
131
121
 
132
122
<li> This code is based upon the Postfix mysql map by Scott Cotton
133
 
and Joshua Marcus, IC Group, Inc.
 
123
and Joshua Marcus, IC Group, Inc.</li>
134
124
 
135
 
<li> The PostgreSQL changes were done by Aaron Sethman.
 
125
<li> The PostgreSQL changes were done by Aaron Sethman.</li>
136
126
 
137
127
<li> Updates for Postfix 1.1.x and PostgreSQL 7.1+ and support for
138
 
calling stored procedures were added by Philip Warner.
 
128
calling stored procedures were added by Philip Warner.</li>
139
129
 
140
 
<li> LaMont Jones was the initial Postfix pgsql maintainer.
 
130
<li> LaMont Jones was the initial Postfix pgsql maintainer.</li>
141
131
 
142
132
<li> Liviu Daia revised the configuration interface and added the
143
 
main.cf configuration feature.
 
133
main.cf configuration feature.</li>
 
134
 
 
135
<li> Liviu Daia revised the configuration interface and added the main.cf
 
136
configuration feature.</li>
 
137
 
 
138
<li> Liviu Daia with further refinements from Jose Luis Tallon and
 
139
Victor Duchovni developed the common query, result_format, domain and
 
140
expansion_limit interface for LDAP, MySQL and PosgreSQL.</li>
144
141
 
145
142
</ul>
146
143