real List of functions Schema | Name | Result data type | Argument data types | Type ------------+------+------------------+---------------------+------ pg_catalog | avg | numeric | bigint | agg (中略) pg_catalog | avg | double precision | real | agg pg_catalog | avg | numeric | smallint | agg (7 rows) \df: extra argument "real" ignored testdb=# testdb=# \df pg_catalog.avg List of functions Schema | Name | Result data type | Argument data types | Type ------------+------+------------------+---------------------+------ pg_catalog | avg | numeric | bigint | agg pg_catalog | avg | double precision | real | agg pg_catalog | avg | numeric | smallint | agg (7 rows) testdb=# \df pg_catalog.avg real List of functions Schema | Name | Result data type | Argument data types | Type ------------+------+------------------+---------------------+------ pg_catalog | avg | double precision | real | agg (1 row) testdb=# • PostgreSQL 14 おわかりいただけたであろうか・・・
real List of functions Schema | Name | Result data type | Argument data types | Type ------------+------+------------------+---------------------+------ pg_catalog | avg | numeric | bigint | agg (中略) pg_catalog | avg | double precision | real | agg pg_catalog | avg | numeric | smallint | agg (7 rows) \df: extra argument "real" ignored testdb=# testdb=# \df pg_catalog.avg List of functions Schema | Name | Result data type | Argument data types | Type ------------+------+------------------+---------------------+------ pg_catalog | avg | numeric | bigint | agg pg_catalog | avg | double precision | real | agg pg_catalog | avg | numeric | smallint | agg (7 rows) testdb=# \df pg_catalog.avg real List of functions Schema | Name | Result data type | Argument data types | Type ------------+------+------------------+---------------------+------ pg_catalog | avg | double precision | real | agg (1 row) testdb=# • PostgreSQL 14 引数に関数の引数型を与えて 絞り込みができるようになった
int, b int); CREATE TABLE testdb=# INSERT INTO t1 SELECT i/100, i/500 FROM generate_series(1,1000000) s(i); INSERT 0 1000000 testdb=# CREATE STATISTICS s1 (dependencies) ON a, b FROM t1; CREATE STATISTICS testdb=# ANALYZE t1; ANALYZE testdb=# \dX List of extended statistics Schema | Name | Definition | Ndistinct | Dependencies | MCV --------+------+--------------+-----------+--------------+----- public | s1 | a, b FROM t1 | | defined | (1 row) testdb=# \dX+ s1 List of extended statistics Schema | Name | Definition | Ndistinct | Dependencies | MCV --------+------+--------------+-----------+--------------+----- public | s1 | a, b FROM t1 | | defined | (1 row) 拡張統計情報を表示する メタコマンドが追加された。 拡張統計情報自体は PostgreSQL 10 から 実装されている。 • 今のところ、 \dX, \dX+ で出力される情報の差はない。
with -reuse-previous (Tom Lane) Specifically, properly reuse the password previously specified, and prompt for a new password if the previous one failed. $ ~/pgsql/pgsql-14b1/bin/psql -p 10014 -U user_a db_a Password for user user_a: psql (14beta1) Type "help" for help. db_a=> \connect -reuse-previous=on connection to server on socket "/tmp/.s.PGSQL.10014" failed: FATAL: password authentication failed for user "user_a" Previous connection kept db_a=> Improve psql's handling of \connect with -reuse-previous (Tom Lane) Specifically, properly reuse the password previously specified, and prompt for a new password if the previous one failed. \connect 実行前に、別端末から user_a のパスワードを変更した パスワードプロンプトが出るのを 期待したのだが・・・ にゃーん・・・