Skip to content

Commit

Permalink
Release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
anayrat committed Jun 11, 2019
1 parent e7b7808 commit edc072d
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
Changelog
=========

2019-06-11 v2.0.0:

The major change in this release is a modification of output to be compatible
with standard PostgreSQL logs format. This can break compatibility.

- Fix statement duration that was only the time passed in the executor (Gilles Darold)
- Make output fully compatible with standard PostgreSQL logs format (Gilles Darold)
- Move queryId as a comment before the statement to make logs compatible
with pgBadger (Gilles Darold)
- Force write of all ProcessUtility statement (include DDL, `SET`...) when
`pg_sampletolog.statement_sample_rate` is set to 1.0 as this mean that
every statement should be written just like
`pg_sampletolog.log_statement = 'all'` (Gilles Darold)

2019-04-21 v1.0.0:

- No change, this extension can be considered as stable
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ It is useful to get query's parameters from a query you identified in pg_stat_st
*No supported*:

* PREPARE statements are not supported.
* Multiple statements in a single query will give this output:

```
select pg_sleep(1)\; select pg_sleep(1);
pg_sleep
----------
(1 row)
2019-06-07 23:07:24.556 CEST [26519] LOG: duration: 1005.733 ms statement: select pg_sleep(1); select pg_sleep(1);
2019-06-07 23:07:25.558 CEST [26519] LOG: duration: 2006.789 ms statement: select pg_sleep(1); select pg_sleep(1);
```

## Testing

Expand Down Expand Up @@ -185,6 +197,11 @@ test pg_sampletolog ... ok

Adrien NAYRAT

## Contributors

* Gilles Darold
* Julien Rouhaud

## Licence

pg_sampletolog is free software distributed under the PostgreSQL license.
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
pg-sampletolog (2.0.0-1) unstable; urgency=medium

* New upstream release

-- Adrien Nayrat <[email protected]> Tue, 11 Jun 2019 10:30:00 +0000

pg-sampletolog (1.0.0-1) unstable; urgency=medium

* No significant change, just release as stable
Expand Down
2 changes: 1 addition & 1 deletion pg_sampletolog.control
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# pg_sampletolog extension
comment = 'Log sample of statements or transactions'
default_version = '1.0.0'
default_version = '2.0.0'

0 comments on commit edc072d

Please sign in to comment.