reference/pgsql/constants.xml
cb25637724c8484f777ca1377a87aa923334bd51
...
...
@@ -5,10 +5,34 @@
5
5
&extension.constants;
6
6
7
7
<variablelist>
8
-
<varlistentry>
8
+
<varlistentry xml:id="constant.pgsql-libpq-version">
9
+
<term>
10
+
<constant>PGSQL_LIBPQ_VERSION</constant>
11
+
(<type>string</type>)
12
+
</term>
13
+
<listitem>
14
+
<simpara>
15
+
Short libpq version that contains only numbers and dots.
16
+
</simpara>
17
+
</listitem>
18
+
</varlistentry>
19
+
<varlistentry xml:id="constant.pgsql-libpq-version-str">
20
+
<term>
21
+
<constant>PGSQL_LIBPQ_VERSION_STR</constant>
22
+
(<type>string</type>)
23
+
</term>
24
+
<listitem>
25
+
<simpara>
26
+
Prior to PHP 8.0.0, the long libpq version that includes compiler information.
27
+
As of PHP 8.0.0, the value is identical to <constant>PGSQL_LIBPQ_VERSION</constant>,
28
+
and using <constant>PGSQL_LIBPQ_VERSION_STR</constant> is deprecated.
29
+
</simpara>
30
+
</listitem>
31
+
</varlistentry>
32
+
<varlistentry xml:id="constant.pgsql-assoc">
9
33
<term>
10
34
<constant>PGSQL_ASSOC</constant>
11
-
(<type>integer</type>)
35
+
(<type>int</type>)
12
36
</term>
13
37
<listitem>
14
38
<simpara>
...
...
@@ -17,10 +41,10 @@
17
41
</simpara>
18
42
</listitem>
19
43
</varlistentry>
20
-
<varlistentry>
44
+
<varlistentry xml:id="constant.pgsql-num">
21
45
<term>
22
46
<constant>PGSQL_NUM</constant>
23
-
(<type>integer</type>)
47
+
(<type>int</type>)
24
48
</term>
25
49
<listitem>
26
50
<simpara>
...
...
@@ -29,10 +53,10 @@
29
53
</simpara>
30
54
</listitem>
31
55
</varlistentry>
32
-
<varlistentry>
56
+
<varlistentry xml:id="constant.pgsql-both">
33
57
<term>
34
58
<constant>PGSQL_BOTH</constant>
35
-
(<type>integer</type>)
59
+
(<type>int</type>)
36
60
</term>
37
61
<listitem>
38
62
<simpara>
...
...
@@ -41,22 +65,56 @@
41
65
</simpara>
42
66
</listitem>
43
67
</varlistentry>
44
-
<varlistentry>
68
+
<varlistentry xml:id="constant.pgsql-connect-force-new">
45
69
<term>
46
70
<constant>PGSQL_CONNECT_FORCE_NEW</constant>
47
-
(<type>integer</type>)
71
+
(<type>int</type>)
48
72
</term>
49
73
<listitem>
50
74
<simpara>
51
75
Passed to <function>pg_connect</function> to force the creation of a new connection,
52
-
rather then re-using an existing identical connection.
76
+
rather than re-using an existing identical connection.
77
+
</simpara>
78
+
</listitem>
79
+
</varlistentry>
80
+
<varlistentry xml:id="constant.pgsql-connect-async">
81
+
<term>
82
+
<constant>PGSQL_CONNECT_ASYNC</constant>
83
+
(<type>int</type>)
84
+
</term>
85
+
<listitem>
86
+
<simpara>
87
+
Passed to <function>pg_connect</function> to create an asynchronous
88
+
connection.
89
+
</simpara>
90
+
</listitem>
91
+
</varlistentry>
92
+
<varlistentry xml:id="constant.pgsql-connection-auth-ok">
93
+
<term>
94
+
<constant>PGSQL_CONNECTION_AUTH_OK</constant>
95
+
(<type>int</type>)
96
+
</term>
97
+
<listitem>
98
+
<simpara>
99
+

100
+
</simpara>
101
+
</listitem>
102
+
</varlistentry>
103
+
<varlistentry xml:id="constant.pgsql-connection-awaiting-response">
104
+
<term>
105
+
<constant>PGSQL_CONNECTION_AWAITING_RESPONSE</constant>
106
+
(<type>int</type>)
107
+
</term>
108
+
<listitem>
109
+
<simpara>
110
+

53
111
</simpara>
54
112
</listitem>
55
113
</varlistentry>
56
-
<varlistentry>
114
+
<varlistentry xml:id="constant.pgsql-connection-bad">
57
115
<term>
58
116
<constant>PGSQL_CONNECTION_BAD</constant>
59
-
(<type>integer</type>)
117
+
(<type>int</type>)
60
118
</term>
61
119
<listitem>
62
120
<simpara>
...
...
@@ -65,10 +123,21 @@
65
123
</simpara>
66
124
</listitem>
67
125
</varlistentry>
68
-
<varlistentry>
126
+
<varlistentry xml:id="constant.pgsql-connection-made">
127
+
<term>
128
+
<constant>PGSQL_CONNECTION_MADE</constant>
129
+
(<type>int</type>)
130
+
</term>
131
+
<listitem>
132
+
<simpara>
133
+

134
+
</simpara>
135
+
</listitem>
136
+
</varlistentry>
137
+
<varlistentry xml:id="constant.pgsql-connection-ok">
69
138
<term>
70
139
<constant>PGSQL_CONNECTION_OK</constant>
71
-
(<type>integer</type>)
140
+
(<type>int</type>)
72
141
</term>
73
142
<listitem>
74
143
<simpara>
...
...
@@ -77,10 +146,43 @@
77
146
</simpara>
78
147
</listitem>
79
148
</varlistentry>
80
-
<varlistentry>
149
+
<varlistentry xml:id="constant.pgsql-connection-setenv">
150
+
<term>
151
+
<constant>PGSQL_CONNECTION_SETENV</constant>
152
+
(<type>int</type>)
153
+
</term>
154
+
<listitem>
155
+
<simpara>
156
+

157
+
</simpara>
158
+
</listitem>
159
+
</varlistentry>
160
+
<varlistentry xml:id="constant.pgsql-connection-ssl-startup">
161
+
<term>
162
+
<constant>PGSQL_CONNECTION_SSL_STARTUP</constant>
163
+
(<type>int</type>)
164
+
</term>
165
+
<listitem>
166
+
<simpara>
167
+

168
+
</simpara>
169
+
</listitem>
170
+
</varlistentry>
171
+
<varlistentry xml:id="constant.pgsql-connection-started">
172
+
<term>
173
+
<constant>PGSQL_CONNECTION_STARTED</constant>
174
+
(<type>int</type>)
175
+
</term>
176
+
<listitem>
177
+
<simpara>
178
+

179
+
</simpara>
180
+
</listitem>
181
+
</varlistentry>
182
+
<varlistentry xml:id="constant.pgsql-seek-set">
81
183
<term>
82
184
<constant>PGSQL_SEEK_SET</constant>
83
-
(<type>integer</type>)
185
+
(<type>int</type>)
84
186
</term>
85
187
<listitem>
86
188
<simpara>
...
...
@@ -89,10 +191,10 @@
89
191
</simpara>
90
192
</listitem>
91
193
</varlistentry>
92
-
<varlistentry>
194
+
<varlistentry xml:id="constant.pgsql-seek-cur">
93
195
<term>
94
196
<constant>PGSQL_SEEK_CUR</constant>
95
-
(<type>integer</type>)
197
+
(<type>int</type>)
96
198
</term>
97
199
<listitem>
98
200
<simpara>
...
...
@@ -101,10 +203,10 @@
101
203
</simpara>
102
204
</listitem>
103
205
</varlistentry>
104
-
<varlistentry>
206
+
<varlistentry xml:id="constant.pgsql-seek-end">
105
207
<term>
106
208
<constant>PGSQL_SEEK_END</constant>
107
-
(<type>integer</type>)
209
+
(<type>int</type>)
108
210
</term>
109
211
<listitem>
110
212
<simpara>
...
...
@@ -113,10 +215,10 @@
113
215
</simpara>
114
216
</listitem>
115
217
</varlistentry>
116
-
<varlistentry>
218
+
<varlistentry xml:id="constant.pgsql-empty-query">
117
219
<term>
118
220
<constant>PGSQL_EMPTY_QUERY</constant>
119
-
(<type>integer</type>)
221
+
(<type>int</type>)
120
222
</term>
121
223
<listitem>
122
224
<simpara>
...
...
@@ -125,10 +227,10 @@
125
227
</simpara>
126
228
</listitem>
127
229
</varlistentry>
128
-
<varlistentry>
230
+
<varlistentry xml:id="constant.pgsql-command-ok">
129
231
<term>
130
232
<constant>PGSQL_COMMAND_OK</constant>
131
-
(<type>integer</type>)
233
+
(<type>int</type>)
132
234
</term>
133
235
<listitem>
134
236
<simpara>
...
...
@@ -137,10 +239,10 @@
137
239
</simpara>
138
240
</listitem>
139
241
</varlistentry>
140
-
<varlistentry>
242
+
<varlistentry xml:id="constant.pgsql-tuples-ok">
141
243
<term>
142
244
<constant>PGSQL_TUPLES_OK</constant>
143
-
(<type>integer</type>)
245
+
(<type>int</type>)
144
246
</term>
145
247
<listitem>
146
248
<simpara>
...
...
@@ -149,10 +251,10 @@
149
251
</simpara>
150
252
</listitem>
151
253
</varlistentry>
152
-
<varlistentry>
254
+
<varlistentry xml:id="constant.pgsql-copy-out">
153
255
<term>
154
256
<constant>PGSQL_COPY_OUT</constant>
155
-
(<type>integer</type>)
257
+
(<type>int</type>)
156
258
</term>
157
259
<listitem>
158
260
<simpara>
...
...
@@ -161,10 +263,10 @@
161
263
</simpara>
162
264
</listitem>
163
265
</varlistentry>
164
-
<varlistentry>
266
+
<varlistentry xml:id="constant.pgsql-copy-in">
165
267
<term>
166
268
<constant>PGSQL_COPY_IN</constant>
167
-
(<type>integer</type>)
269
+
(<type>int</type>)
168
270
</term>
169
271
<listitem>
170
272
<simpara>
...
...
@@ -173,10 +275,10 @@
173
275
</simpara>
174
276
</listitem>
175
277
</varlistentry>
176
-
<varlistentry>
278
+
<varlistentry xml:id="constant.pgsql-bad-response">
177
279
<term>
178
280
<constant>PGSQL_BAD_RESPONSE</constant>
179
-
(<type>integer</type>)
281
+
(<type>int</type>)
180
282
</term>
181
283
<listitem>
182
284
<simpara>
...
...
@@ -185,10 +287,10 @@
185
287
</simpara>
186
288
</listitem>
187
289
</varlistentry>
188
-
<varlistentry>
290
+
<varlistentry xml:id="constant.pgsql-nonfatal-error">
189
291
<term>
190
292
<constant>PGSQL_NONFATAL_ERROR</constant>
191
-
(<type>integer</type>)
293
+
(<type>int</type>)
192
294
</term>
193
295
<listitem>
194
296
<simpara>
...
...
@@ -197,10 +299,10 @@
197
299
</simpara>
198
300
</listitem>
199
301
</varlistentry>
200
-
<varlistentry>
302
+
<varlistentry xml:id="constant.pgsql-fatal-error">
201
303
<term>
202
304
<constant>PGSQL_FATAL_ERROR</constant>
203
-
(<type>integer</type>)
305
+
(<type>int</type>)
204
306
</term>
205
307
<listitem>
206
308
<simpara>
...
...
@@ -209,10 +311,10 @@
209
311
</simpara>
210
312
</listitem>
211
313
</varlistentry>
212
-
<varlistentry>
314
+
<varlistentry xml:id="constant.pgsql-transaction-idle">
213
315
<term>
214
316
<constant>PGSQL_TRANSACTION_IDLE</constant>
215
-
(<type>integer</type>)
317
+
(<type>int</type>)
216
318
</term>
217
319
<listitem>
218
320
<simpara>
...
...
@@ -221,10 +323,10 @@
221
323
</simpara>
222
324
</listitem>
223
325
</varlistentry>
224
-
<varlistentry>
326
+
<varlistentry xml:id="constant.pgsql-transaction-active">
225
327
<term>
226
328
<constant>PGSQL_TRANSACTION_ACTIVE</constant>
227
-
(<type>integer</type>)
329
+
(<type>int</type>)
228
330
</term>
229
331
<listitem>
230
332
<simpara>
...
...
@@ -234,10 +336,10 @@
234
336
</simpara>
235
337
</listitem>
236
338
</varlistentry>
237
-
<varlistentry>
339
+
<varlistentry xml:id="constant.pgsql-transaction-intrans">
238
340
<term>
239
341
<constant>PGSQL_TRANSACTION_INTRANS</constant>
240
-
(<type>integer</type>)
342
+
(<type>int</type>)
241
343
</term>
242
344
<listitem>
243
345
<simpara>
...
...
@@ -246,10 +348,10 @@
246
348
</simpara>
247
349
</listitem>
248
350
</varlistentry>
249
-
<varlistentry>
351
+
<varlistentry xml:id="constant.pgsql-transaction-inerror">
250
352
<term>
251
353
<constant>PGSQL_TRANSACTION_INERROR</constant>
252
-
(<type>integer</type>)
354
+
(<type>int</type>)
253
355
</term>
254
356
<listitem>
255
357
<simpara>
...
...
@@ -258,10 +360,10 @@
258
360
</simpara>
259
361
</listitem>
260
362
</varlistentry>
261
-
<varlistentry>
363
+
<varlistentry xml:id="constant.pgsql-transaction-unknown">
262
364
<term>
263
365
<constant>PGSQL_TRANSACTION_UNKNOWN</constant>
264
-
(<type>integer</type>)
366
+
(<type>int</type>)
265
367
</term>
266
368
<listitem>
267
369
<simpara>
...
...
@@ -270,10 +372,10 @@
270
372
</simpara>
271
373
</listitem>
272
374
</varlistentry>
273
-
<varlistentry>
375
+
<varlistentry xml:id="constant.pgsql-diag-severity">
274
376
<term>
275
377
<constant>PGSQL_DIAG_SEVERITY</constant>
276
-
(<type>integer</type>)
378
+
(<type>int</type>)
277
379
</term>
278
380
<listitem>
279
381
<simpara>
...
...
@@ -286,10 +388,10 @@
286
388
</simpara>
287
389
</listitem>
288
390
</varlistentry>
289
-
<varlistentry>
391
+
<varlistentry xml:id="constant.pgsql-diag-sqlstate">
290
392
<term>
291
393
<constant>PGSQL_DIAG_SQLSTATE</constant>
292
-
(<type>integer</type>)
394
+
(<type>int</type>)
293
395
</term>
294
396
<listitem>
295
397
<simpara>
...
...
@@ -301,10 +403,10 @@
301
403
</simpara>
302
404
</listitem>
303
405
</varlistentry>
304
-
<varlistentry>
406
+
<varlistentry xml:id="constant.pgsql-diag-message-primary">
305
407
<term>
306
408
<constant>PGSQL_DIAG_MESSAGE_PRIMARY</constant>
307
-
(<type>integer</type>)
409
+
(<type>int</type>)
308
410
</term>
309
411
<listitem>
310
412
<simpara>
...
...
@@ -313,10 +415,10 @@
313
415
</simpara>
314
416
</listitem>
315
417
</varlistentry>
316
-
<varlistentry>
418
+
<varlistentry xml:id="constant.pgsql-diag-message-detail">
317
419
<term>
318
420
<constant>PGSQL_DIAG_MESSAGE_DETAIL</constant>
319
-
(<type>integer</type>)
421
+
(<type>int</type>)
320
422
</term>
321
423
<listitem>
322
424
<simpara>
...
...
@@ -325,10 +427,10 @@
325
427
</simpara>
326
428
</listitem>
327
429
</varlistentry>
328
-
<varlistentry>
430
+
<varlistentry xml:id="constant.pgsql-diag-message-hint">
329
431
<term>
330
432
<constant>PGSQL_DIAG_MESSAGE_HINT</constant>
331
-
(<type>integer</type>)
433
+
(<type>int</type>)
332
434
</term>
333
435
<listitem>
334
436
<simpara>
...
...
@@ -338,10 +440,10 @@
338
440
</simpara>
339
441
</listitem>
340
442
</varlistentry>
341
-
<varlistentry>
443
+
<varlistentry xml:id="constant.pgsql-diag-statement-position">
342
444
<term>
343
445
<constant>PGSQL_DIAG_STATEMENT_POSITION</constant>
344
-
(<type>integer</type>)
446
+
(<type>int</type>)
345
447
</term>
346
448
<listitem>
347
449
<simpara>
...
...
@@ -351,10 +453,10 @@
351
453
</simpara>
352
454
</listitem>
353
455
</varlistentry>
354
-
<varlistentry>
456
+
<varlistentry xml:id="constant.pgsql-diag-internal-position">
355
457
<term>
356
458
<constant>PGSQL_DIAG_INTERNAL_POSITION</constant>
357
-
(<type>integer</type>)
459
+
(<type>int</type>)
358
460
</term>
359
461
<listitem>
360
462
<simpara>
...
...
@@ -367,10 +469,10 @@
367
469
</simpara>
368
470
</listitem>
369
471
</varlistentry>
370
-
<varlistentry>
472
+
<varlistentry xml:id="constant.pgsql-diag-internal-query">
371
473
<term>
372
474
<constant>PGSQL_DIAG_INTERNAL_QUERY</constant>
373
-
(<type>integer</type>)
475
+
(<type>int</type>)
374
476
</term>
375
477
<listitem>
376
478
<simpara>
...
...
@@ -380,10 +482,10 @@
380
482
</simpara>
381
483
</listitem>
382
484
</varlistentry>
383
-
<varlistentry>
485
+
<varlistentry xml:id="constant.pgsql-diag-context">
384
486
<term>
385
487
<constant>PGSQL_DIAG_CONTEXT</constant>
386
-
(<type>integer</type>)
488
+
(<type>int</type>)
387
489
</term>
388
490
<listitem>
389
491
<simpara>
...
...
@@ -395,10 +497,10 @@
395
497
</simpara>
396
498
</listitem>
397
499
</varlistentry>
398
-
<varlistentry>
500
+
<varlistentry xml:id="constant.pgsql-diag-source-file">
399
501
<term>
400
502
<constant>PGSQL_DIAG_SOURCE_FILE</constant>
401
-
(<type>integer</type>)
503
+
(<type>int</type>)
402
504
</term>
403
505
<listitem>
404
506
<simpara>
...
...
@@ -408,10 +510,10 @@
408
510
</simpara>
409
511
</listitem>
410
512
</varlistentry>
411
-
<varlistentry>
513
+
<varlistentry xml:id="constant.pgsql-diag-source-line">
412
514
<term>
413
515
<constant>PGSQL_DIAG_SOURCE_LINE</constant>
414
-
(<type>integer</type>)
516
+
(<type>int</type>)
415
517
</term>
416
518
<listitem>
417
519
<simpara>
...
...
@@ -421,10 +523,10 @@
421
523
</simpara>
422
524
</listitem>
423
525
</varlistentry>
424
-
<varlistentry>
526
+
<varlistentry xml:id="constant.pgsql-diag-source-function">
425
527
<term>
426
528
<constant>PGSQL_DIAG_SOURCE_FUNCTION</constant>
427
-
(<type>integer</type>)
529
+
(<type>int</type>)
428
530
</term>
429
531
<listitem>
430
532
<simpara>
...
...
@@ -433,11 +535,66 @@
433
535
</simpara>
434
536
</listitem>
435
537
</varlistentry>
538
+
<varlistentry xml:id="constant.pgsql-diag-schema-name">
539
+
<term>
540
+
<constant>PGSQL_DIAG_SCHEMA_NAME</constant>
541
+
(<type>int</type>)
542
+
</term>
543
+
<listitem>
544
+
<simpara>
545
+
Available since PHP 7.3.0.
546
+
</simpara>
547
+
</listitem>
548
+
</varlistentry>
549
+
<varlistentry xml:id="constant.pgsql-diag-table-name">
550
+
<term>
551
+
<constant>PGSQL_DIAG_TABLE_NAME</constant>
552
+
(<type>int</type>)
553
+
</term>
554
+
<listitem>
555
+
<simpara>
556
+
Available since PHP 7.3.0.
557
+
</simpara>
558
+
</listitem>
559
+
</varlistentry>
560
+
<varlistentry xml:id="constant.pgsql-diag-column-name">
561
+
<term>
562
+
<constant>PGSQL_DIAG_COLUMN_NAME</constant>
563
+
(<type>int</type>)
564
+
</term>
565
+
<listitem>
566
+
<simpara>
567
+
Available since PHP 7.3.0.
568
+
</simpara>
569
+
</listitem>
570
+
</varlistentry>
571
+
<varlistentry xml:id="constant.pgsql-diag-datatype-name">
572
+
<term>
573
+
<constant>PGSQL_DIAG_DATATYPE_NAME</constant>
574
+
(<type>int</type>)
575
+
</term>
576
+
<listitem>
577
+
<simpara>
578
+
Available since PHP 7.3.0.
579
+
</simpara>
580
+
</listitem>
581
+
</varlistentry>
582
+
<varlistentry xml:id="constant.pgsql-diag-constraint-name">
583
+
<term>
584
+
<constant>PGSQL_DIAG_CONSTRAINT_NAME</constant>
585
+
(<type>int</type>)
586
+
</term>
587
+
<listitem>
588
+
<simpara>
589
+
Available since PHP 7.3.0.
590
+
</simpara>
591
+
</listitem>
592
+
</varlistentry>
436
593

437
-
<varlistentry>
594
+
<varlistentry xml:id="constant.pgsql-errors-terse">
438
595
<term>
439
596
<constant>PGSQL_ERRORS_TERSE</constant>
440
-
(<type>integer</type>)
597
+
(<type>int</type>)
441
598
</term>
442
599
<listitem>
443
600
<simpara>
...
...
@@ -447,10 +604,10 @@
447
604
</simpara>
448
605
</listitem>
449
606
</varlistentry>
450
-
<varlistentry>
607
+
<varlistentry xml:id="constant.pgsql-errors-default">
451
608
<term>
452
609
<constant>PGSQL_ERRORS_DEFAULT</constant>
453
-
(<type>integer</type>)
610
+
(<type>int</type>)
454
611
</term>
455
612
<listitem>
456
613
<simpara>
...
...
@@ -461,10 +618,10 @@
461
618
</simpara>
462
619
</listitem>
463
620
</varlistentry>
464
-
<varlistentry>
621
+
<varlistentry xml:id="constant.pgsql-errors-verbose">
465
622
<term>
466
623
<constant>PGSQL_ERRORS_VERBOSE</constant>
467
-
(<type>integer</type>)
624
+
(<type>int</type>)
468
625
</term>
469
626
<listitem>
470
627
<simpara>
...
...
@@ -474,10 +631,47 @@
474
631
</listitem>
475
632
</varlistentry>
476
633

477
-
<varlistentry>
634
+
<varlistentry xml:id="constant.pgsql-notice-last">
635
+
<term>
636
+
<constant>PGSQL_NOTICE_LAST</constant>
637
+
(<type>int</type>)
638
+
</term>
639
+
<listitem>
640
+
<simpara>
641
+
Used by <function>pg_last_notice</function>.
642
+
Available since PHP 7.1.0.
643
+
</simpara>
644
+
</listitem>
645
+
</varlistentry>
646
+
<varlistentry xml:id="constant.pgsql-notice-all">
647
+
<term>
648
+
<constant>PGSQL_NOTICE_ALL</constant>
649
+
(<type>int</type>)
650
+
</term>
651
+
<listitem>
652
+
<simpara>
653
+
Used by <function>pg_last_notice</function>.
654
+
Available since PHP 7.1.0.
655
+
</simpara>
656
+
</listitem>
657
+
</varlistentry>
658
+
<varlistentry xml:id="constant.pgsql-notice-clear">
659
+
<term>
660
+
<constant>PGSQL_NOTICE_CLEAR</constant>
661
+
(<type>int</type>)
662
+
</term>
663
+
<listitem>
664
+
<simpara>
665
+
Used by <function>pg_last_notice</function>.
666
+
Available since PHP 7.1.0.
667
+
</simpara>
668
+
</listitem>
669
+
</varlistentry>
670
+

671
+
<varlistentry xml:id="constant.pgsql-status-long">
478
672
<term>
479
673
<constant>PGSQL_STATUS_LONG</constant>
480
-
(<type>integer</type>)
674
+
(<type>int</type>)
481
675
</term>
482
676
<listitem>
483
677
<simpara>
...
...
@@ -486,10 +680,10 @@
486
680
</simpara>
487
681
</listitem>
488
682
</varlistentry>
489
-
<varlistentry>
683
+
<varlistentry xml:id="constant.pgsql-status-string">
490
684
<term>
491
685
<constant>PGSQL_STATUS_STRING</constant>
492
-
(<type>integer</type>)
686
+
(<type>int</type>)
493
687
</term>
494
688
<listitem>
495
689
<simpara>
...
...
@@ -499,10 +693,10 @@
499
693
</listitem>
500
694
</varlistentry>
501
695

502
-
<varlistentry>
696
+
<varlistentry xml:id="constant.pgsql-conv-ignore-default">
503
697
<term>
504
698
<constant>PGSQL_CONV_IGNORE_DEFAULT</constant>
505
-
(<type>integer</type>)
699
+
(<type>int</type>)
506
700
</term>
507
701
<listitem>
508
702
<simpara>
...
...
@@ -511,10 +705,10 @@
511
705
</simpara>
512
706
</listitem>
513
707
</varlistentry>
514
-
<varlistentry>
708
+
<varlistentry xml:id="constant.pgsql-conv-force-null">
515
709
<term>
516
710
<constant>PGSQL_CONV_FORCE_NULL</constant>
517
-
(<type>integer</type>)
711
+
(<type>int</type>)
518
712
</term>
519
713
<listitem>
520
714
<simpara>
...
...
@@ -523,10 +717,10 @@
523
717
</simpara>
524
718
</listitem>
525
719
</varlistentry>
526
-
<varlistentry>
720
+
<varlistentry xml:id="constant.pgsql-conv-ignore-not-null">
527
721
<term>
528
-
<constant>PGSQL_CONV_IGNORE_DEFAULT</constant>
529
-
(<type>integer</type>)
722
+
<constant>PGSQL_CONV_IGNORE_NOT_NULL</constant>
723
+
(<type>int</type>)
530
724
</term>
531
725
<listitem>
532
726
<simpara>
...
...
@@ -536,9 +730,214 @@
536
730
</listitem>
537
731
</varlistentry>
538
732

733
+
<varlistentry xml:id="constant.pgsql-dml-no-conv">
734
+
<term>
735
+
<constant>PGSQL_DML_NO_CONV</constant>
736
+
(<type>int</type>)
737
+
</term>
738
+
<listitem>
739
+
<simpara>
740
+
Passed to <function>pg_insert</function>, <function>pg_select</function>,
741
+
<function>pg_update</function> and <function>pg_delete</function>.
742
+
All parameters passed as is. Manual escape is required
743
+
if parameters contain user supplied data. Use <function>pg_escape_string</function>
744
+
for it.
745
+
</simpara>
746
+
</listitem>
747
+
</varlistentry>
748
+
<varlistentry xml:id="constant.pgsql-dml-exec">
749
+
<term>
750
+
<constant>PGSQL_DML_EXEC</constant>
751
+
(<type>int</type>)
752
+
</term>
753
+
<listitem>
754
+
<simpara>
755
+
Passed to <function>pg_insert</function>, <function>pg_select</function>,
756
+
<function>pg_update</function> and <function>pg_delete</function>.
757
+
Execute query by these functions.
758
+
</simpara>
759
+
</listitem>
760
+
</varlistentry>
761
+
<varlistentry xml:id="constant.pgsql-dml-async">
762
+
<term>
763
+
<constant>PGSQL_DML_ASYNC</constant>
764
+
(<type>int</type>)
765
+
</term>
766
+
<listitem>
767
+
<simpara>
768
+
Passed to <function>pg_insert</function>, <function>pg_select</function>,
769
+
<function>pg_update</function> and <function>pg_delete</function>.
770
+
Execute asynchronous query by these functions.
771
+
</simpara>
772
+
</listitem>
773
+
</varlistentry>
774
+
<varlistentry xml:id="constant.pgsql-dml-string">
775
+
<term>
776
+
<constant>PGSQL_DML_STRING</constant>
777
+
(<type>int</type>)
778
+
</term>
779
+
<listitem>
780
+
<simpara>
781
+
Passed to <function>pg_insert</function>, <function>pg_select</function>,
782
+
<function>pg_update</function> and <function>pg_delete</function>.
783
+
Return executed query string.
784
+
</simpara>
785
+
</listitem>
786
+
</varlistentry>
787
+
<varlistentry xml:id="constant.pgsql-dml-escape">
788
+
<term>
789
+
<constant>PGSQL_DML_ESCAPE</constant>
790
+
(<type>int</type>)
791
+
</term>
792
+
<listitem>
793
+
<simpara>
794
+
Passed to <function>pg_insert</function>, <function>pg_select</function>,
795
+
<function>pg_update</function> and <function>pg_delete</function>.
796
+
Apply escape to all parameters instead of calling <function>pg_convert</function>
797
+
internally. This option omits meta data look up. Query could be as fast as
798
+
<function>pg_query</function> and <function>pg_send_query</function>.
799
+
</simpara>
800
+
</listitem>
801
+
</varlistentry>
802
+
<varlistentry xml:id="constant.pgsql-polling-failed">
803
+
<term>
804
+
<constant>PGSQL_POLLING_FAILED</constant>
805
+
(<type>int</type>)
806
+
</term>
807
+
<listitem>
808
+
<simpara>
809
+
Returned by <function>pg_connect_poll</function> to indicate that the
810
+
connection attempt failed.
811
+
</simpara>
812
+
</listitem>
813
+
</varlistentry>
814
+
<varlistentry xml:id="constant.pgsql-polling-reading">
815
+
<term>
816
+
<constant>PGSQL_POLLING_READING</constant>
817
+
(<type>int</type>)
818
+
</term>
819
+
<listitem>
820
+
<simpara>
821
+
Returned by <function>pg_connect_poll</function> to indicate that the
822
+
connection is waiting for the PostgreSQL socket to be readable.
823
+
</simpara>
824
+
</listitem>
825
+
</varlistentry>
826
+
<varlistentry xml:id="constant.pgsql-polling-writing">
827
+
<term>
828
+
<constant>PGSQL_POLLING_WRITING</constant>
829
+
(<type>int</type>)
830
+
</term>
831
+
<listitem>
832
+
<simpara>
833
+
Returned by <function>pg_connect_poll</function> to indicate that the
834
+
connection is waiting for the PostgreSQL socket to be writable.
835
+
</simpara>
836
+
</listitem>
837
+
</varlistentry>
838
+
<varlistentry xml:id="constant.pgsql-polling-ok">
839
+
<term>
840
+
<constant>PGSQL_POLLING_OK</constant>
841
+
(<type>int</type>)
842
+
</term>
843
+
<listitem>
844
+
<simpara>
845
+
Returned by <function>pg_connect_poll</function> to indicate that the
846
+
connection is ready to be used.
847
+
</simpara>
848
+
</listitem>
849
+
</varlistentry>
850
+
<varlistentry xml:id="constant.pgsql-polling-active">
851
+
<term>
852
+
<constant>PGSQL_POLLING_ACTIVE</constant>
853
+
(<type>int</type>)
854
+
</term>
855
+
<listitem>
856
+
<simpara>
857
+
Returned by <function>pg_connect_poll</function> to indicate that the
858
+
connection is currently active.
859
+
</simpara>
860
+
</listitem>
861
+
</varlistentry>
862
+
<varlistentry xml:id="constant.pgsql-diag-severity-nonlocalized">
863
+
<term>
864
+
<constant>PGSQL_DIAG_SEVERITY_NONLOCALIZED</constant>
865
+
(<type>int</type>)
866
+
</term>
867
+
<listitem>
868
+
<simpara>
869
+
The severity; the field contents are ERROR, FATAL, or PANIC (in an error message), or WARNING, NOTICE, DEBUG, INFO, or LOG (in a notice message). This is identical to the PG_DIAG_SEVERITY field except that the contents are never localized. This is present only in versions 9.6 and later / PHP 7.3.0 and later.
870
+
</simpara>
871
+
</listitem>
872
+
</varlistentry>
873
+
<varlistentry xml:id="constant.pgsql-show-context-never">
874
+
<term>
875
+
<constant>PGSQL_SHOW_CONTEXT_NEVER</constant>
876
+
(<type>int</type>)
877
+
</term>
878
+
<listitem>
879
+
<simpara>
880
+
To be used with <function>pg_set_error_context_visibility</function>,
881
+
the context is never shown.
882
+
Available as of PHP 8.3.0.
883
+
</simpara>
884
+
</listitem>
885
+
</varlistentry>
886
+
<varlistentry xml:id="constant.pgsql-show-context-errors">
887
+
<term>
888
+
<constant>PGSQL_SHOW_CONTEXT_ERRORS</constant>
889
+
(<type>int</type>)
890
+
</term>
891
+
<listitem>
892
+
<simpara>
893
+
To be used with <function>pg_set_error_context_visibility</function>,
894
+
the context's fields are included in error messages only.
895
+
This is the default behaviour.
896
+
Available as of PHP 8.3.0.
897
+
</simpara>
898
+
</listitem>
899
+
</varlistentry>
900
+
<varlistentry xml:id="constant.pgsql-show-context-always">
901
+
<term>
902
+
<constant>PGSQL_SHOW_CONTEXT_ALWAYS</constant>
903
+
(<type>int</type>)
904
+
</term>
905
+
<listitem>
906
+
<simpara>
907
+
To be used with <function>pg_set_error_context_visibility</function>,
908
+
the context's fields are included in error, notice and warning messages.
909
+
Available as of PHP 8.3.0.
910
+
</simpara>
911
+
</listitem>
912
+
</varlistentry>
913
+
<varlistentry xml:id="constant.pgsql-trace-suppress-timestamps">
914
+
<term>
915
+
<constant>PGSQL_TRACE_SUPPRESS_TIMESTAMPS</constant>
916
+
(<type>int</type>)
917
+
</term>
918
+
<listitem>
919
+
<simpara>
920
+
To be used with <function>pg_trace</function>,
921
+
the timestamp is not included in the trace's messages.
922
+
Available as of PHP 8.3.0.
923
+
</simpara>
924
+
</listitem>
925
+
</varlistentry>
926
+
<varlistentry xml:id="constant.pgsql-trace-regress-mode">
927
+
<term>
928
+
<constant>PGSQL_TRACE_REGRESS_MODE</constant>
929
+
(<type>int</type>)
930
+
</term>
931
+
<listitem>
932
+
<simpara>
933
+
To be used with <function>pg_trace</function>,
934
+
fields such as OIDs are included in the trace's messages.
935
+
Available as of PHP 8.3.0.
936
+
</simpara>
937
+
</listitem>
938
+
</varlistentry>
539
939
</variablelist>
540
940
</appendix>
541
-

542
941
<!-- Keep this comment at the end of the file
543
942
Local variables:
544
943
mode: sgml
545
944