Skip to content

Commit f4bc700

Browse files
authored
pass connection options to postgresql client (#1047)
* pass connection options to postgresql client Signed-off-by: Turkalp Burak Kayrancıoğlu <[email protected]> * pass connection options to postgresql client Signed-off-by: Turkalp Burak Kayrancioglu <[email protected]> * pass connection options to postgresql client Signed-off-by: Turkalp Burak Kayrancioglu <[email protected]> * out_pgsql: Connection_Options parameter described Signed-off-by: Türkalp Burak Kayrancıoğlu <[email protected]> --------- Signed-off-by: Turkalp Burak Kayrancıoğlu <[email protected]> Signed-off-by: Turkalp Burak Kayrancioglu <[email protected]> Signed-off-by: Türkalp Burak Kayrancıoğlu <[email protected]> Co-authored-by: Türkalp Burak KAYRANCIOĞLU <[email protected]>
1 parent 76ed2fb commit f4bc700

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pipeline/outputs/postgresql.md

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Make sure that the `fluentbit` user can connect to the `fluentbit` database on t
5656
| `Password` | Password of PostgreSQL username | - |
5757
| `Database` | Database name to connect to | - \(current user\) |
5858
| `Table` | Table name where to store data | - |
59+
| `Connection_Options` | Specifies any valid [PostgreSQL connection options](https://www.postgresql.org/docs/devel/libpq-connect.html#LIBPQ-CONNECT-OPTIONS) | - |
5960
| `Timestamp_Key` | Key in the JSON object containing the record timestamp | date |
6061
| `Async` | Define if we will use async or sync connections | false |
6162
| `min_pool_size` | Minimum number of connection in async mode | 1 |
@@ -74,15 +75,16 @@ In your main configuration file add the following section:
7475

7576
```text
7677
[OUTPUT]
77-
Name pgsql
78-
Match *
79-
Host 172.17.0.2
80-
Port 5432
81-
User fluentbit
82-
Password YourCrazySecurePassword
83-
Database fluentbit
84-
Table fluentbit
85-
Timestamp_Key ts
78+
Name pgsql
79+
Match *
80+
Host 172.17.0.2
81+
Port 5432
82+
User fluentbit
83+
Password YourCrazySecurePassword
84+
Database fluentbit
85+
Table fluentbit
86+
Connection_Options -c statement_timeout=0
87+
Timestamp_Key ts
8688
```
8789

8890
## The output table

0 commit comments

Comments
 (0)