Skip to content

Commit 349577d

Browse files
esmerelcnorris-cs
andauthored
Apply suggestions from code review
Co-authored-by: Craig Norris <[email protected]> Signed-off-by: Lynette Miles <[email protected]>
1 parent b260817 commit 349577d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

pipeline/outputs/postgresql.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ According to the parameters set in the configuration file, the plugin creates th
1212

1313
{% hint style="info" %}
1414

15-
If you're not familiar with how PostgreSQL's users and grants system works, the links in the [References](#references) section at might be helpful.
15+
If you're not familiar with how PostgreSQL's users and grants system works, the links in the [References](#references) section might be helpful.
1616

1717
{% endhint %}
1818

19-
A typical installation normally consists of a self-contained database for Fluent Bit in which you can store the output of one or more pipelines. You can store them in the same table, or in separate tables, or even in separate databases based on several factors, including workload, scalability, data protection and security.
19+
A typical installation consists of a self-contained database for Fluent Bit in which you can store the output of one or more pipelines. You can store them in the same table, or in separate tables, or even in separate databases based on several factors, including workload, scalability, data protection, and security.
2020

2121
This example uses a single table called `fluentbit` in a database called `fluentbit`, owned by the user `fluentbit`. In your environment, use names appropriate to your needs. For security reasons, don't use the `postgres` user which has `SUPERUSER` privileges.
2222

@@ -60,7 +60,7 @@ This plugin supports the following parameters:
6060
| `Port` | PostgreSQL port. | `- (5432)` |
6161
| `User` | PostgreSQL username. | `- (current user)` |
6262
| `Password` | Password of PostgreSQL username. | `-` |
63-
| `Database` | Database name to connect to. | `- (current user)` |
63+
| `Database` | Database name to connect to. | `- (current user)` |
6464
| `Table` | Table name where to store data. | `-` |
6565
| `Connection_Options` | Specifies any valid [PostgreSQL connection options](https://www.postgresql.org/docs/devel/libpq-connect.html#LIBPQ-CONNECT-OPTIONS). | `-` |
6666
| `Timestamp_Key` | Key in the JSON object containing the record timestamp. | `date` |
@@ -129,11 +129,11 @@ The output plugin automatically creates a table with the name specified by the `
129129

130130
The timestamp doesn't contain any information about the time zone, and it's therefore referred to the time zone used by the connection to PostgreSQL (`timezone` setting).
131131

132-
For more information on the `JSONB` data type in PostgreSQL, refer to the [JSON types](https://www.postgresql.org/docs/current/datatype-json.html) page in the official documentation. You can find instructions on how to index or query the objects (including `jsonpath` introduced in PostgreSQL 12).
132+
For more information about the `JSONB` data type in PostgreSQL, refer to the [JSON types](https://www.postgresql.org/docs/current/datatype-json.html) page in the official documentation. You can find instructions on how to index or query the objects (including `jsonpath` introduced in PostgreSQL 12).
133133

134134
## Scalability
135135

136-
PostgreSQL includes support for declarative partitioning. To improve vertical scalability of the database, you can partition your tables on time ranges, such as on a monthly basis. PostgreSQL supports also sub-partitions, allowing you to partition your records by hash and default partitions.
136+
PostgreSQL includes support for declarative partitioning. To improve vertical scalability of the database, you can partition your tables on time ranges, such as on a monthly basis. PostgreSQL supports also sub-partitions, which let you partition your records by hash and default partitions.
137137

138138
For more information on horizontal partitioning in PostgreSQL, refer to the [Table partitioning](https://www.postgresql.org/docs/current/ddl-partitioning.html) page in the official documentation.
139139

@@ -143,11 +143,11 @@ Choose the latest major version of PostgreSQL if you're starting now.
143143

144144
PostgreSQL is a powerful and extensible database engine. More expert users can take advantage of `BEFORE INSERT` triggers on the main table and reroute records on normalised tables, depending on tags and content of the actual JSON objects.
145145

146-
For example, you can use Fluent Bit to send HTTP log records to the `landing` table defined in the configuration file. This table contains a `BEFORE INSERT` trigger  (a function in `plpgsql` language) that normalizes the content of the JSON object and that inserts the record in another table (with its own structure and partitioning model). This kind of trigger lets you discard the record from the landing table by returning `NULL`.
146+
For example, you can use Fluent Bit to send HTTP log records to the `landing` table defined in the configuration file. This table contains a `BEFORE INSERT` trigger (a function in `plpgsql` language) that normalizes the content of the JSON object and that inserts the record in another table (with its own structure and partitioning model). This kind of trigger lets you discard the record from the landing table by returning `NULL`.
147147

148148
## References
149149

150-
The following a list of resources from the PostgreSQL documentation:
150+
Refer to the following a list of resources from the PostgreSQL documentation:
151151

152152
- [Database Roles](https://www.postgresql.org/docs/current/user-manag.html)
153153
- [`GRANT`](https://www.postgresql.org/docs/current/sql-grant.html)

0 commit comments

Comments
 (0)