Waiting for PostgreSQL 17 – Allow \watch queries to stop on minimum rows returned

On 29th of August 2023, Daniel Gustafsson committed patch: Allow \watch queries to stop on minimum rows returned   When running a repeat query with \watch in psql, it can be helpful to be able to stop the watch process when the query no longer returns the expected amount of rows. An example would be … Continue reading “Waiting for PostgreSQL 17 – Allow \watch queries to stop on minimum rows returned”

Waiting for PostgreSQL 17 – Generate new LOG for “trust” connections under log_connections

On 26th of August 2023, Michael Paquier committed patch: Generate new LOG for "trust" connections under log_connections   Adding an extra LOG for connections that have not set an authn ID, like when the "trust" authentication method is used, is useful for audit purposes.   A couple of TAP tests for SSL and authentication need … Continue reading “Waiting for PostgreSQL 17 – Generate new LOG for “trust” connections under log_connections”

Waiting for PostgreSQL 17 – Add to_bin() and to_oct().

On 23rd of August 2023, Nathan Bossart committed patch: Add to_bin() and to_oct().   This commit introduces functions for converting numbers to their equivalent binary and octal representations. Also, the base conversion code for these functions and to_hex() has been moved to a common helper function.   Co-authored-by: Eric Radman Reviewed-by: Ian Barwick, Dag Lem, … Continue reading “Waiting for PostgreSQL 17 – Add to_bin() and to_oct().”

Waiting for PostgreSQL 16 – Add array_sample() and array_shuffle() functions.

On 7th of April 2023, Tom Lane committed patch: Add array_sample() and array_shuffle() functions.   These are useful in Monte Carlo applications.   Martin Kalcher, reviewed/adjusted by Daniel Gustafsson and myself   Discussion: https://postgr.es/m/9d160a44-7675-51e8-60cf-6d64b76db831@aboutsource.net

Waiting for PostgreSQL 16 – Add pg_stat_io view, providing more detailed IO statistics

On 11st of February 2023, Andres Freund committed patch: Add pg_stat_io view, providing more detailed IO statistics   Builds on 28e626bde00 and f30d62c2fc6. See the former for motivation.   Rows of the view show IO operations for a particular backend type, IO target object, IO context combination (e.g. a client backend’s operations on permanent relations … Continue reading “Waiting for PostgreSQL 16 – Add pg_stat_io view, providing more detailed IO statistics”

Waiting for PostgreSQL 16 – Allow underscores in integer and numeric constants.

On 4th of February 2023, Dean Rasheed committed patch: Allow underscores in integer and numeric constants.   This allows underscores to be used in integer and numeric literals, and their corresponding type input functions, for visual grouping. For example:   1_500_000_000 3.14159_26535_89793 0xffff_ffff 0b_1001_0001   A single underscore is allowed between any 2 digits, or … Continue reading “Waiting for PostgreSQL 16 – Allow underscores in integer and numeric constants.”

Waiting for PostgreSQL 16 – Invent random_normal() to provide normally-distributed random numbers.

On 9th of January 2023, Tom Lane committed patch: Invent random_normal() to provide normally-distributed random numbers.   There is already a version of this in contrib/tablefunc, but it seems sufficiently widely useful to justify having it in core.   Paul Ramsey   Discussion: https://postgr.es/m/CACowWR0DqHAvOKUCNxTrASFkWsDLqKMd6WiXvVvaWg4pV1BMnQ@mail.gmail.com

Waiting for PostgreSQL 16 – Non-decimal integer literals

On 14th of December 2022, Peter Eisentraut committed patch: Non-decimal integer literals   Add support for hexadecimal, octal, and binary integer literals:   0x42F 0o273 0b100101   per SQL:202x draft.   This adds support in the lexer as well as in the integer type input functions.   Reviewed-by: John Naylor <john.naylor@enterprisedb.com> Reviewed-by: Zhihong Yu <zyu@yugabyte.com> … Continue reading “Waiting for PostgreSQL 16 – Non-decimal integer literals”

Waiting for PostgreSQL 16 – Add grantable MAINTAIN privilege and pg_maintain role.

On 14th of December 2022, Jeff Davis committed patch: Add grantable MAINTAIN privilege and pg_maintain role.   Allows VACUUM, ANALYZE, REINDEX, REFRESH MATERIALIZED VIEW, CLUSTER, and LOCK TABLE.   Effectively reverts 4441fc704d. Instead of creating separate privileges for VACUUM, ANALYZE, and other maintenance commands, group them together under a single MAINTAIN privilege.   Author: Nathan … Continue reading “Waiting for PostgreSQL 16 – Add grantable MAINTAIN privilege and pg_maintain role.”