@@ -47,15 +47,15 @@ dbname=postgresscanner
47
47
host=localhost port=5432 dbname=mydb connect_timeout=10
48
48
```
49
49
50
- | Name | Description | Default |
51
- | ------------ | -------------------------------------- | ------------------ |
52
- | ` dbname ` | Database name | [ user] |
53
- | ` host ` | Name of host to connect to | ` localhost ` |
54
- | ` hostaddr ` | Host IP address | ` localhost ` |
55
- | ` passfile ` | Name of file passwords are stored in | ` ~/.pgpass ` |
56
- | ` password ` | Postgres password | (empty) |
57
- | ` port ` | Port number | ` 5432 ` |
58
- | ` user ` | Postgres user name | current user |
50
+ | Name | Description | Default |
51
+ | ---------- | ------------------------------------ | ------------ |
52
+ | ` dbname ` | Database name | [ user] |
53
+ | ` host ` | Name of host to connect to | ` localhost ` |
54
+ | ` hostaddr ` | Host IP address | ` localhost ` |
55
+ | ` passfile ` | Name of file passwords are stored in | ` ~/.pgpass ` |
56
+ | ` password ` | Postgres password | (empty) |
57
+ | ` port ` | Port number | ` 5432 ` |
58
+ | ` user ` | Postgres user name | current user |
59
59
60
60
An example URI is ` postgresql://username@hostname/dbname ` .
61
61
@@ -89,7 +89,7 @@ SHOW ALL TABLES;
89
89
<div class =" narrow_table monospace_table " ></div >
90
90
91
91
| name |
92
- | ------- |
92
+ | ----- |
93
93
| uuids |
94
94
95
95
``` sql
@@ -98,8 +98,8 @@ SELECT * FROM uuids;
98
98
99
99
<div class =" narrow_table monospace_table " ></div >
100
100
101
- | u |
102
- | -------------------------------------- |
101
+ | u |
102
+ | ------------------------------------ |
103
103
| 6d3d2541-710b-4bde-b3af-4711738636bf |
104
104
| NULL |
105
105
| 00000000-0000-0000-0000-000000000001 |
@@ -154,9 +154,9 @@ INSERT INTO postgres_db.tbl VALUES (42, 'DuckDB');
154
154
SELECT * FROM postgres_db .tbl ;
155
155
```
156
156
157
- | id | name |
158
- | ---:| -------- |
159
- | 42 | DuckDB |
157
+ | id | name |
158
+ | ---: | ------ |
159
+ | 42 | DuckDB |
160
160
161
161
### ` COPY `
162
162
@@ -237,9 +237,9 @@ INSERT INTO postgres_db.s1.integers VALUES (42);
237
237
SELECT * FROM postgres_db .s1 .integers;
238
238
```
239
239
240
- | i |
241
- | ---:|
242
- | 42 |
240
+ | i |
241
+ | ---: |
242
+ | 42 |
243
243
244
244
``` sql
245
245
DROP SCHEMA postgres_db .s1 ;
@@ -262,9 +262,9 @@ SELECT * FROM postgres_db.tmp;
262
262
263
263
This returns:
264
264
265
- | i |
266
- | ---:|
267
- | 42 |
265
+ | i |
266
+ | ---: |
267
+ | 42 |
268
268
269
269
``` sql
270
270
ROLLBACK ;
@@ -299,8 +299,8 @@ SELECT * FROM postgres_query('postgres_db', 'SELECT * FROM cars LIMIT 3');
299
299
;
300
300
-->
301
301
302
- | brand | model | color |
303
- | -------------- | ------------ | ------- |
302
+ | brand | model | color |
303
+ | ------------ | ---------- | ----- |
304
304
| Ferrari | Testarossa | red |
305
305
| Aston Martin | DB2 | blue |
306
306
| Bentley | Mulsanne | gray |
@@ -321,15 +321,16 @@ CALL postgres_execute('postgres_db', 'CREATE TABLE my_table (i INTEGER)');
321
321
322
322
The extension exposes the following configuration parameters.
323
323
324
- | Name | Description | Default |
325
- | -----------------------------------| ----------------------------------------------------------------------------| -----------|
326
- | ` pg_debug_show_queries ` | DEBUG SETTING: print all queries sent to Postgres to stdout | ` false ` |
327
- | ` pg_connection_cache ` | Whether or not to use the connection cache | ` true ` |
328
- | ` pg_experimental_filter_pushdown ` | Whether or not to use filter pushdown (currently experimental) | ` false ` |
329
- | ` pg_array_as_varchar ` | Read Postgres arrays as varchar - enables reading mixed dimensional arrays | ` false ` |
330
- | ` pg_connection_limit ` | The maximum amount of concurrent Postgres connections | ` 64 ` |
331
- | ` pg_pages_per_task ` | The amount of pages per task | ` 1000 ` |
332
- | ` pg_use_binary_copy ` | Whether or not to use BINARY copy to read data | ` true ` |
324
+ | Name | Description | Default |
325
+ | --------------------------------- | -------------------------------------------------------------------------- | ------- |
326
+ | ` pg_array_as_varchar ` | Read Postgres arrays as varchar - enables reading mixed dimensional arrays | ` false ` |
327
+ | ` pg_connection_cache ` | Whether or not to use the connection cache | ` true ` |
328
+ | ` pg_connection_limit ` | The maximum amount of concurrent Postgres connections | ` 64 ` |
329
+ | ` pg_debug_show_queries ` | DEBUG SETTING: print all queries sent to Postgres to stdout | ` false ` |
330
+ | ` pg_experimental_filter_pushdown ` | Whether or not to use filter pushdown (currently experimental) | ` false ` |
331
+ | ` pg_pages_per_task ` | The amount of pages per task | ` 1000 ` |
332
+ | ` pg_use_binary_copy ` | Whether or not to use BINARY copy to read data | ` true ` |
333
+ | ` pg_use_ctid_scan ` | Whether or not to parallelize scanning using table ctids | ` true ` |
333
334
334
335
## Schema Cache
335
336
0 commit comments