@@ -251,7 +251,6 @@ SELECT dblink_connect('myconn', 'dbname=postgres options=-csearch_path=');
251
251
-− FOREIGN DATA WRAPPER functionality
252
252
-− Note: local connection must require password authentication for this to work properly
253
253
-− Otherwise, you will receive the following error from dblink_connect():
254
- -− -−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−-−
255
254
-− ERROR: password is required
256
255
-− DETAIL: Non-superuser cannot connect if the server does not request a password.
257
256
-− HINT: Target server's authentication method must be changed.
@@ -271,7 +270,7 @@ SELECT dblink_connect('myconn', 'fdtest');
271
270
OK
272
271
(1 row)
273
272
274
- SELECT * FROM dblink('myconn','SELECT * FROM foo') AS t(a int, b text, c text[]);
273
+ SELECT * FROM dblink('myconn', 'SELECT * FROM foo') AS t(a int, b text, c text[]);
275
274
a | b | c
276
275
-−-−+-−-+-−-−-−-−-−-−-−-
277
276
0 | a | {a0,b0,c0}
@@ -311,7 +310,6 @@ SELECT dblink_connect('myconn', 'dbname=postgres options=-csearch_path=');
311
310
-- FOREIGN DATA WRAPPER functionality
312
311
-- Note: local connection must require password authentication for this to work properly
313
312
-- Otherwise, you will receive the following error from dblink_connect():
314
- -- ----------------------------------------------------------------------
315
313
-- ERROR: password is required
316
314
-- DETAIL: Non-superuser cannot connect if the server does not request a password.
317
315
-- HINT: Target server's authentication method must be changed.
@@ -331,7 +329,7 @@ SELECT dblink_connect('myconn', 'fdtest');
331
329
OK
332
330
(1 row)
333
331
334
- SELECT * FROM dblink('myconn','SELECT * FROM foo') AS t(a int, b text, c text[]);
332
+ SELECT * FROM dblink('myconn', 'SELECT * FROM foo') AS t(a int, b text, c text[]);
335
333
a | b | c
336
334
----+---+---------------
337
335
0 | a | {a0,b0,c0}
@@ -1131,11 +1129,11 @@ ____________________________________________________________________________-->
1131
1129
<para>
1132
1130
The SQL command that you wish to execute in the remote database,
1133
1131
for example
1134
- <literal>insert into foo values(0,'a','{"a0","b0","c0"}')</literal>.
1132
+ <literal>insert into foo values(0, 'a', '{"a0","b0","c0"}')</literal>.
1135
1133
</para>
1136
1134
____________________________________________________________________________-->
1137
1135
<para>
1138
- 你希望在远程数据库中执行的 SQL 命令,例如<literal>insert into foo values(0,'a','{"a0","b0","c0"}')</literal>。
1136
+ 你希望在远程数据库中执行的 SQL 命令,例如<literal>insert into foo values(0, 'a', '{"a0","b0","c0"}')</literal>。
1139
1137
</para>
1140
1138
</listitem>
1141
1139
</varlistentry>
@@ -1192,7 +1190,7 @@ SELECT dblink_connect('dbname=dblink_test_standby');
1192
1190
OK
1193
1191
(1 row)
1194
1192
1195
- SELECT dblink_exec('insert into foo values(21,''z'',''{"a0","b0","c0"}'');');
1193
+ SELECT dblink_exec('insert into foo values(21, ''z'', ''{"a0","b0","c0"}'');');
1196
1194
dblink_exec
1197
1195
-−-−-−-−-−-−-−-−-
1198
1196
INSERT 943366 1
@@ -1204,7 +1202,7 @@ SELECT dblink_connect('myconn', 'dbname=regression');
1204
1202
OK
1205
1203
(1 row)
1206
1204
1207
- SELECT dblink_exec('myconn', 'insert into foo values(21,''z'',''{"a0","b0","c0"}'');');
1205
+ SELECT dblink_exec('myconn', 'insert into foo values(21, ''z'', ''{"a0","b0","c0"}'');');
1208
1206
dblink_exec
1209
1207
-−-−-−-−-−-−-−-−-−
1210
1208
INSERT 6432584 1
@@ -1227,7 +1225,7 @@ SELECT dblink_connect('dbname=dblink_test_standby');
1227
1225
OK
1228
1226
(1 row)
1229
1227
1230
- SELECT dblink_exec('insert into foo values(21,''z'',''{"a0","b0","c0"}'');');
1228
+ SELECT dblink_exec('insert into foo values(21, ''z'', ''{"a0","b0","c0"}'');');
1231
1229
dblink_exec
1232
1230
-----------------
1233
1231
INSERT 943366 1
@@ -1239,7 +1237,7 @@ SELECT dblink_connect('myconn', 'dbname=regression');
1239
1237
OK
1240
1238
(1 row)
1241
1239
1242
- SELECT dblink_exec('myconn', 'insert into foo values(21,''z'',''{"a0","b0","c0"}'');');
1240
+ SELECT dblink_exec('myconn', 'insert into foo values(21, ''z'', ''{"a0","b0","c0"}'');');
1243
1241
dblink_exec
1244
1242
------------------
1245
1243
INSERT 6432584 1
0 commit comments