33[.text-center]
44== PostgreSQL 函数参考手册
55
6- 每个函数的格式如下:
7-
86[%sectnums]
97=== current_catalog
108
@@ -21,11 +19,11 @@ postgres=#
2119|===
2220
2321
24- ===
22+ ===
2523
2624[cols="145,378"]
27- |=== current_database()
28- h| 函数名称 h| current_database
25+ |===
26+ h| 函数名称 h| current_database()
2927| 参数数据类型 | 无输入参数
3028| 函数返回值数据类型 | name
3129| 函数含义 | 获得当前的database 名称。
@@ -37,7 +35,7 @@ postgres=#
3735
3836
3937
40- ===
38+ ===
4139
4240[cols="145,378"]
4341|===
@@ -53,7 +51,7 @@ a| postgres=# BEGIN; BEGIN postgres=*# select 1,current_query(); ?column? | curr
5351|===
5452
5553
56- ===
54+ ===
5755
5856[cols="145,378"]
5957|===
@@ -70,7 +68,7 @@ postgres=#
7068
7169
7270
73- ===
71+ ===
7472
7573[cols="145,378"]
7674|===
@@ -85,7 +83,7 @@ postgres=#
8583|===
8684
8785
88- ===
86+ ===
8987
9088[cols="145,378"]
9189|===
@@ -100,7 +98,7 @@ a| postgres=# select current_schema(); current_schema ---------------- public (1
10098|===
10199
102100
103- ===
101+ ===
104102
105103[cols="145,378"]
106104|===
@@ -116,7 +114,7 @@ a| postgres=# select current_schemas(false); current_schemas ----------------- {
116114|===
117115
118116
119- ===
117+ ===
120118
121119[cols="145,378"]
122120|===
@@ -133,7 +131,7 @@ postgres=#
133131
134132
135133
136- ===
134+ ===
137135
138136[cols="145,378"]
139137|===
@@ -148,7 +146,7 @@ postgres=#
148146|===
149147
150148
151- ===
149+ ===
152150
153151[cols="145,378"]
154152|===
@@ -164,7 +162,7 @@ a| postgres=# select inet_client_port(); inet_client_port ------------------ (1
164162
165163
166164
167- ===
165+ ===
168166
169167[cols="145,378"]
170168|===
@@ -180,7 +178,7 @@ postgres=#
180178
181179
182180
183- ===
181+ ===
184182
185183[cols="145,378"]
186184|===
@@ -197,7 +195,7 @@ a| postgres=# select inet_server_port(); inet_server_port ------------------ (1
197195
198196
199197
200- ===
198+ ===
201199
202200[cols="145,378"]
203201|===
@@ -213,7 +211,7 @@ postgres=#
213211
214212
215213
216- ===
214+ ===
217215
218216[cols="145,378"]
219217|===
@@ -239,7 +237,7 @@ postgres=#
239237
240238
241239
242- ===
240+ ===
243241
244242[cols="145,378"]
245243|===
@@ -255,7 +253,7 @@ postgres=#
255253
256254
257255
258- ===
256+ ===
259257
260258[cols="145,378"]
261259|===
@@ -274,7 +272,7 @@ postgres=#
274272
275273
276274
277- ===
275+ ===
278276
279277[cols="145,378"]
280278|===
@@ -291,7 +289,7 @@ postgres=#
291289
292290
293291
294- ===
292+ ===
295293
296294[cols="145,378"]
297295|===
@@ -308,7 +306,7 @@ a| postgres=# select pg_is_other_temp_schema(16426); pg_is_other_temp_schema ---
308306
309307
310308
311- ===
309+ ===
312310
313311[cols="145,378"]
314312|===
@@ -326,7 +324,7 @@ postgres=#
326324
327325
328326
329- ===
327+ ===
330328
331329[cols="145,378"]
332330|===
@@ -343,7 +341,7 @@ postgres=#
343341
344342
345343
346- ===
344+ ===
347345
348346[cols="145,378"]
349347|===
@@ -360,7 +358,7 @@ postgres=#
360358
361359
362360
363- ===
361+ ===
364362
365363[cols="145,378"]
366364|===
@@ -377,7 +375,7 @@ postgres=#
377375
378376
379377
380- ===
378+ ===
381379
382380[cols="145,378"]
383381|===
0 commit comments