<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PostgreSQL 14.17 &#8211; SRA OSS Tech Blog</title>
	<atom:link href="https://www.sraoss.co.jp/tech-blog/tag/postgresql-14-17/feed/index.xml" rel="self" type="application/rss+xml" />
	<link>https://www.sraoss.co.jp/tech-blog/</link>
	<description>OSS専門の技術ブログ。PostgreSQL、Zabbixを中心に10種類以上のOSSの解説、アップデート情報、運用ヒントを提供。</description>
	<lastBuildDate>Thu, 22 Oct 2026 08:01:52 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://www.sraoss.co.jp/tech-blog/wp-content/uploads/2018/07/blog-icon-150x150.png</url>
	<title>PostgreSQL 14.17 &#8211; SRA OSS Tech Blog</title>
	<link>https://www.sraoss.co.jp/tech-blog/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>PostgreSQL 14.18 に関する技術情報</title>
		<link>https://www.sraoss.co.jp/tech-blog/pgsql/14-18/</link>
		
		<dc:creator><![CDATA[データベース技術グループ]]></dc:creator>
		<pubDate>Fri, 23 May 2025 00:01:30 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[PostgreSQL 14]]></category>
		<category><![CDATA[PostgreSQL 14.17]]></category>
		<category><![CDATA[PostgreSQL 14.18]]></category>
		<category><![CDATA[アップデート]]></category>
		<guid isPermaLink="false">https://www.sraoss.co.jp/tech-blog/?p=17697</guid>

					<description><![CDATA[このリリースは 14.17 からの修正リリース（2025年 5月 8日リリース）です。 14.X からのアップデートではダンプ、リストアは不要です。 ただし、パーティションテーブルに自己参照の外部キー制約がある場合には、 ...]]></description>
										<content:encoded><![CDATA[<p>このリリースは 14.17 からの修正リリース（2025年 5月 8日リリース）です。<br />
14.X からのアップデートではダンプ、リストアは不要です。</p>
<p>ただし、パーティションテーブルに自己参照の外部キー制約がある場合には、これらの制約を再作成する必要があります。下記の2番の項目を参照してください。<br />
また、BRIN bloomインデックスを使用している場合には、インデックス再作成することを推奨します。下記の3番の項目を参照してください。</p>
<p>また、14.14 よりも前のバージョンからアップデートする場合には、<a href="/tech-blog/pgsql/14-14/" rel="noopener">14.14のリリース情報</a>も参照してください。</p>
<p><span id="more-17697"></span></p>
<h3>PostgreSQL 14.17 から 14.18 への変更点</h3>
<p>17.5, 16.9, 15.13, 14.18, 13.21 の各バージョンが同時にリリースされており、本ページでは共通の記載としています。各修正項目が適用されるバージョン番号を項目末尾に括弧書きで記載しています。</p>
<ol>
<li>不正にエンコードされた文字列の検査で、1バイトのバッファ超過読み取りが防止されました。  (Noah Misch, Andres Freund) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
文字エンコーディングGB18030であるものとして文字列を検査するときに発生します。可能性は低いですが、メモリの末尾で非互換のマルチバイト文字が現れた場合に、SIGSEGVのクラッシュが発生するおそれがあります。サーバとlibpqを用いたクライアントアプリケーションの両方で該当します。(CVE-2025-4207)
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ec5f89e8a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d1264948f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=44ba3f55f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3f2ab7393">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=cbadeaca9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=617d34908">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f3bb0b2c4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=45fe7e08f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=258cde839">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=7279e5820">&#167;</a></small></p>
<li>パーティションテーブルで自己参照の外部キーを正しく扱えるようになりました。  (Álvaro Herrera) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
制約に参照されたテーブルが同じパーティションテーブルであるとき、子パーティションを作成または付加するときに外部キー制約に対するカタログエントリの作成に失敗していました。この結果、制約が完全には強制されませんでした。これは12.13、13.9、14.6時点の修正で混入したバグです。
</p>
<p>
パーティションテーブル上に自己参照外部キー制約を作成した後に、子パーティションの作成や付加を行っていた場合、不適切なカタログ内容を修正するために、このような外部キー制約を削除して作成し直すべきです。制約に違反している行が既にあるかもしれず、そのような場合、制約の再作成はエラーになり、データ修正の対応が必要となることに、注意してください。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f51ae3187">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1817d62ec">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6ba979cf5">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1649d153a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b3a9c536d">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=cb0ad70b8">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ebcc799a7">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e064b770c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6be02bbc8">&#167;</a></small></p>
<li>BRIN のサポートプロシージャ brin_bloom_union() で圧縮されたBRIN のサマリをマージするときにデータ損失を回避するように修正されました。  (Tomas Vondra) (17.5)(16.9)(15.13)(14.18)</li>
<p>
当該コードでは圧縮したものの展開結果が入力と同一でないことを考慮しておらず、インデックス検索をしたときに行数が少なく返り、誤った問い合わせ結果が生じる可能性がありました。
</p>
<p>
この誤りはBRIN bloomインデックスが導入されたv14時点から存在しましたが、当該のコードパスは使われることが稀でした。v17でパラレルインデックス作成が導入されて、問題が顕在化しやすくなりました。
</p>
<li>FROMのビューや関数に対する行全体のテーブル参照を使うUPDATE、DELETE、MERGEの問い合わせで、予期せぬエラー「ERROR:  attribute ... has wrong type」が生じることがあり、修正されました。  (Tom Lane) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<pre>
（エラー発生例）
db1=# CREATE TABLE t4 (f1 int, f2 int);
db1=# INSERT INTO t4 VALUES (1, 10), (2, 20), (3, 30);
db1=# CREATE VIEW v4 AS SELECT * FROM t4 OFFSET 0;
db1=# UPDATE t4 SET f2 = v4.f2 FROM v4 WHERE v4.f1 = t4.f1 RETURNING v4;
ERROR:  attribute 3 of type record has wrong type
DETAIL:  Table has type record, but query expects v4.
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ca0830e5a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=fec43428c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ae0be2f0b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d3a29ae6a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=39af32f78">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=317aba70e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=584f17a90">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=28a7e31d0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=7713f4592">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1a20bc946">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b200180de">&#167;</a></small></p>
<li>「DO NOTHING」アクションのパーティションテーブルに対するMERGEが修正されました。  (Tender Wang) (17.5)(16.9)(15.13)</li>
<p>
一部の場合に予期せぬエラー「ERROR:  unknown action in MERGE WHEN clause」が発生していました。
</p>
<pre>
（エラー発生例 - マッチしないので 1行挿入されるのが正しい動作）
db1=# CREATE TABLE pt5 (a int, b int) PARTITION BY LIST(a);
db1=# CREATE TABLE p51 PARTITION OF pt5 FOR VALUES IN (1);
db1=# CREATE TABLE p52 PARTITION OF pt5 FOR VALUES IN (2);
db1=# MERGE INTO pt5 USING (SELECT 2 AS a) AS q ON pt5.a = q.a
      WHEN NOT MATCHED THEN INSERT VALUES (1, 2)
      WHEN MATCHED THEN DO NOTHING;
ERROR:  unknown action in MERGE WHEN clause
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=25303678a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8d4cd3b4a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=14a33d3f0">&#167;</a></small></p>
<li>INSERTコマンドで、テーブルがNULLを禁止する制約を伴うドメインデータ型の生成列（GENERATED）を持つときのエラーが防止されました。  (Jian He) (17.5)(16.9)(15.13)(14.18)</li>
<p>
生成式が問題ない値を返す場合でも制約違反のエラーになっていました。
</p>
<pre>
（エラー発生例 - 値が NULL ではないのにドメイン制約違反のエラーになる）
db1=# CREATE DOMAIN d6 AS int CHECK (VALUE IS NOT NULL);
db1=# CREATE TABLE t6 (a int, b d6 GENERATED ALWAYS AS (a * 2) STORED);
db1=# INSERT INTO t6 (a) VALUES (2);
ERROR:  value for domain d6 violates check constraint "d6_check"
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3c39c000c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f04e0faa3">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=97d671672">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=4604928ed">&#167;</a></small></p>
<li>WITH句の内にあるINSERT、UPDATE、DELETE、MERGEコマンドに付加された外側のCTE名の参照を正しく扱えるようになりました。  (Tom Lane) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
このような場合にパーサは、再帰が許されない場合であることを検出できず、CTEを使用可能な順序に並べ替える際にそのような参照を考慮することもできませんでした。
</p>
<p>
本来エラーになるべき問い合わせで、何らか結果が返ったり、アサート失敗が生じる動作が報告されました。潜在的にはクラッシュを引き起こす可能性があります。
</p>
<pre>
（修正後の正常動作例 - このエラーが出ないというのがバグ）
db1=# CREATE TABLE t7 (id int);
db1=# INSERT INTO t7 VALUES (1),(2);
db1=# WITH RECURSIVE out_cte(n) AS 
      (WITH sub_cte AS (SELECT * FROM out_cte) DELETE FROM t7 RETURNING id)
      SELECT * FROM out_cte;
ERROR:  recursive query "out_cte" must not contain data-modifying statements
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5e7be43f4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1980ec2bc">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ede29a1e4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=754a3d82d">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e276b5829">&#167;</a></small></p>
<li>JSONコンストラクタ式のキーでのキャストの誤った処理が修正されました。  (Amit Langote) (17.5)</li>
<p>
以下のようにキーがjsonに暗黙キャストされる場合に、非スカラーのキーであることが検査されず、クラッシュを引き起こすことが報告されました。
</p>
<pre>
（修正後の動作例 - 最後のSELECTでクラッシュすることがあった）
db1=# CREATE TYPE typ8 AS ENUM ('happy', 'sad', 'neutral');
db1=# CREATE FUNCTION f8_to_json(typ8) RETURNS json LANGUAGE sql IMMUTABLE
        AS $$ SELECT to_json($1::text); $$;
db1=# CREATE CAST (typ8 AS json) WITH FUNCTION f8_to_json(typ8) AS IMPLICIT;
db1=# SELECT JSON_OBJECT('happy'::typ8 : '123'::jsonb);
ERROR:  key value must be scalar, not array, composite, or json
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8b2392ae3">&#167;</a></small></p>
<li>引数が無名レコード型であるとき、array_agg()の並列化を行わないようになりました。  (Richard Guo, Tom Lane) (17.5)(16.9)</li>
<p>
パラレルワーカーとの通信プロトコルでは、返されたレコードの型を特定することに対応していないためです。これまでパラレル実行時に「ERROR:  input of anonymous composite types is not implemented」が発生することがありました。
</p>
<pre>
（障害発生例 - 例でarray_dimsを使っているのは成功時の出力を小さくするため）
db1=# CREATE TABLE t9 (id int, v text);
db1=# INSERT INTO t9 SELECT g, md5(g::text) FROM generate_series(1, 400000) g;
db1=# VACUUM ANALYZE t9;
db1=# SET debug_parallel_query TO on;
db1=# SELECT array_dims(array_agg(s)) FROM (SELECT * FROM t9) s;
ERROR:  input of anonymous composite types is not implemented
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=43847dd5e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a7aa9f21f">&#167;</a></small></p>
<li>入力がint2vector型、またはoidvector型であるとき、配列コンストラクタのARRAY(subquery)とARRAY[expression, ...]が正常に配列を生成できるように修正されました。  (Tom Lane) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
以下のように、生成した配列をunnest関数に与えるとクラッシュが発生していました。
</p>
<pre>
（障害発生例 - oidv列を指定した場合も同様にクラッシュする）
db1=# CREATE TABLE t10 (i2v int2vector, oidv oidvector);
db1=# INSERT INTO t10 VALUES ('1', '10000');
db1=# SELECT ARRAY(SELECT i2v) FROM t10;
      array
------------------
 [1:1][0:0]={{1}}
(1 row)

db1=# SELECT unnest(ARRAY(SELECT i2v)) FROM t10;
server closed the connection unexpectedly
</pre>
<p>
この修正はPostgreSQL 9.5より前の振る舞いに戻すものです。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c826cd1b1">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0405982c7">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=13dd6f772">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f7ae51312">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=474aee3df">&#167;</a></small></p>
<li>Ispell辞書のパース時に、無効な接辞が誤って報告される可能性が修正されました。  (Jacob Brazeal) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=99c01aadf">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=61513da08">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e2921c0e9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=da85544ae">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f1c1bafcd">&#167;</a></small></p>
<li>デフォルトを持つドメイン型の場合を正しく処理するようにALTER TABLE ADD COLUMNが修正されました。  (Jian He, Tom Lane, Tender Wang) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
ドメイン型にデフォルトがある場合、（明示的なDEFAULT句を指定せずに）その型の列を追加すると、既存の行にドメインのデフォルト値が設定されず、新しい列はNULLのままになっていました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d6dd2a02b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=edc3bccd0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1d180931c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c75c830e2">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=aac07b562">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0941aadcd">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=053222a97">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=2d6cfb0cd">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d31d39cfe">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=dd34cbfce">&#167;</a></small></p>
<li>外部キー制約のON DELETE SET DEFAULTまたはSET NULLアクションで重複した列名がある場合の不正動作が修正されました。  (Tom Lane) (17.5)(16.9)(15.13)</li>
<p>
本障害でアサート失敗やメモリエラーが出る動作が報告されました。クラッシュを引き起こす可能性もあります。
</p>
<pre>
（報告された障害発生例）
db1=# CREATE TABLE t13 (c01 INT, c02 TEXT);
db1=# CREATE INDEX i13 ON t13 (c01);
db1=# INSERT INTO t13 (c01, c02) VALUES (0, 'abc');
db1=# CREATE LOCAL TEMP TABLE IF NOT EXISTS v878825600 ( c878825601 INT
  COMPRESSION DEFAULT CONSTRAINT cons_878825602 REFERENCES v878825600 MATCH
  SIMPLE ON UPDATE NO ACTION ON DELETE SET DEFAULT ( c878825601, c878825601,
  c878825601, c878825601, c878825601, c878825601, c878825601 ) PRIMARY KEY )
  ON COMMIT DELETE ROWS;
db1=# CREATE LOCAL TEMP TABLE IF NOT EXISTS v878825601 ( c878825601 INT
  COMPRESSION DEFAULT CONSTRAINT cons_878825602 REFERENCES v878825600 MATCH
  SIMPLE ON UPDATE NO ACTION ON DELETE SET DEFAULT ( c878825601, c878825601,
  c878825601, c878825601, c878825601, c878825601, c878825601 ) PRIMARY KEY )
  ON COMMIT DELETE ROWS;
ERROR:  pfree called with invalid pointer 0x103e61f (header 0x0000006000000001)
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5e6e97fbf">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=fb3a77fd9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f5069f026">&#167;</a></small></p>
<li>外部キー制約のプロパティ変更が許可されなかった場合のエラーメッセージが改善されました。  (Álvaro Herrera) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<pre>
（報告された不適切なエラーメッセージ）
db1=# CREATE TABLE pk14 (a int PRIMARY KEY);
db1=# CREATE TABLE fk14 (a int REFERENCES pk14);
db1=# ALTER TABLE fk14 ALTER CONSTRAINT fk14_a_fkey DEFERRABLE,
      ALTER CONSTRAINT fk14_a_fkey NO INHERIT;
ERROR:  ALTER CONSTRAINT statement constraints cannot be marked NO INHERIT

（本来出力されるべきエラーメッセージ）
ERROR:  FOREIGN KEY constraints cannot be marked NO INHERIT
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=4e026be5f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9ea5fe5b6">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=bf1e2d2db">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=931a1c023">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0f354e080">&#167;</a></small></p>
<li>ON COMMIT DELETE ROWSとマークされた一時テーブルのrelhassubclassフラグをリセットする際のエラーが回避されました。  (Noah Misch) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<pre>
（報告されたエラー発生例）
db1=# CREATE TEMPORARY TABLE p15 (a int PRIMARY KEY) ON COMMIT DELETE ROWS;
db1=# CREATE TEMPORARY TABLE c15 () INHERITS (p15);
db1=# ANALYZE;
db1=# DROP TABLE c15;
db1=# ANALYZE;
ERROR:  tuple to be updated was already modified by an operation triggered by the current command
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d0a049987">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5905e9935">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e0f53e669">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a61b67cd0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d34b671a6">&#167;</a></small></p>
<li>XMLSERIALIZE()のINDENTオプションで不足していた逆解析が追加されました。  (Jim Jones) (17.5)(16.9)</li>
<p>
以前は、XMLSERIALIZE(... INDENT)を使用するビューまたはルールがINDENT句なしでダンプされ、リストア後に誤った問い合わせ結果が発生していました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=2e0f93d7c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0af3ae468">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=310907aaf">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=514d47dfb">&#167;</a></small></p>
<li>FILTERオプションとORDER BY（またはDISTINCT）の両方のオプションを持つ集約関数の引数を早期評価しないようになりました。  (David Rowley) (17.5)(16.9)</li>
<p>
ORDER BYまたはDISTINCTが指定されている場合、Aggプランノード内でソートを行うのではなく、集約入力値を事前にソートすることを検討します。しかし、集約入力に失敗する可能性のある式（例えば、入力の除数の一部が0になる可能性がある除算など）が含まれ、そのような失敗を防ぐためのFILTER句がある場合、これは問題となります。事前にソートすると、式の評価がFILTERテストの前に押し出され、いずれにせよエラーが発生する可能性があります。FILTERがあり、入力式が単純なVarやConstよりも複雑なものである場合は、事前ソートを行わないようにすることで、これを回避するようになりました。
</p>
<pre>
（報告された障害発生例）
db1=# CREATE TABLE t17 (id int, data jsonb);
db1=# INSERT INTO t17 (id, data) VALUES
      (1,'{"a": null}'), (2,'{"a": "2"}'), (3,'{"a": "2"}'), (4,'{"a": ""}');
db1=# SELECT array_agg(distinct (data->>'a')::int)
        FILTER (WHERE data->>'a' IS NOT NULL AND data->>'a' != '') FROM t17;
ERROR:  invalid input syntax for type integer: ""
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=065ce49a1">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=887a23237">&#167;</a></small></p>
<li>外部結合が存在する場合のNOT NULL制約列からの誤った推論が修正されました。  (Richard Guo) (17.5)</li>
<p>
外部結合の後に適用されるので冗長ではない（外部結合で NULL が生じうる）にもかかわらず、場合によってはプランナが問い合わせ条件「IS NOT NULL」を破棄していました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=bc5a08af3">&#167;</a></small></p>
<li>複合型の値に適用される「IS [NOT] NULL」テストに基づく誤った最適化が回避されました。  (Bruce Momjian) (17.5)</li>
<p>
要素がNULLである複合型の値は、NOT NULL制約では排除されませんが、IS NULL／IS NOT NULL式ではNULLとして扱われます。そうではない一貫性に欠けた振る舞いがあり、誤った問い合わせ結果が生じていました。ドキュメントにも複合型についてはNOT NULL制約とCHECK (VALUE IS NOT NULL)制約は同じでは無いことが明記されました。
</p>
<pre>
（修正前バージョンでの誤動作例 - id=1 の行のみ選択されるのが正しい動作）
db1=# CREATE TYPE typ19 AS (m1 int, m2 int);
db1=# CREATE TABLE t19 (id int, v typ19 NOT NULL);
db1=# INSERT INTO t19 VALUES (1, '(10,20)'), (2, '(,)');
db1=# SELECT id, v, (v IS NULL) AS isnull FROM t19 WHERE v IS NOT NULL;
 id |    v    | isnull
----+---------+--------
  1 | (10,20) | f
  2 | (,)     | t
(2 rows)
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b8b1e87b7">&#167;</a></small></p>
<li>プランナがトップレベルの式内で複数のハッシュ可能なScalarArrayOpExpr部分式を認識できない問題が修正されました。  (David Geier) (17.5)(16.9)(15.13)(14.18)</li>
<p>
この結果、ハッシュテーブルで処理できるはずの追加の部分式（すなわち、右辺が全て定数のIN、NOT IN、= ANY）が不必要に非効率的に実行されることがありました。
</p>
<p>
内部でハッシュテーブルを使うかどうかはEXPLAINの出力には現れませんが本修正で性能改善が期待できます。以下のような形状の問い合わせが該当します。
</p>
<pre>
SELECT * FROM t20
  WHERE c1 IN ('certainstring1', 'certainstring3', 《...多数の項...》)
     OR c1 IN ('certainstring2', 'certainstring4', 《...多数の項...》);
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5672a8399">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5a0840b76">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a7f213b11">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b68f664bb">&#167;</a></small></p>
<li>低いfillfactor設定値による誤ったテーブルサイズの推定値が修正されました。  (Tomas Vondra) (17.5)</li>
<p>
まだANALYZEが実行されていないテーブルの行数をプランナが推定する時、テーブルのfillfactor設定を推定に使用しますが、その結果を少なくとも1ページあたり1行に制限する処理が省略されていました。fillfactorの値が低い場合、推定値が不当に小さくなる可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=587b6aa3f">&#167;</a></small></p>
<li>Bitmap Heap Scanにおけるskip fetch最適化が無効になりました。  (Matthias van de Meent) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
この最適化を使用すると、並行して実行されるVACUUM処理がページをall-visibleとマークした時に、デッドタプルが返されることがあることが判明しました。これにより誤った問い合わせ結果が生じる可能性があります。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=78cb2466f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=980727b84">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=77d90d6d6">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=4934d3875">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b9ec8125d">&#167;</a></small></p>
<li>多数の検索キーがある場合のGINインデックス検索起動時の性能問題が修正されました。  (Tom Lane, Vinod Sridharan) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
多くのキーを持つインデックス可能な句（例えば、配列要素が数万個ある「jsonbcol ?| array[...]」）は、クエリの開始に O(N2) の時間を要しており、またその処理中にキャンセルもできませんでした。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9094eb25b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d52221cf0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=2d313375c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e2a6934a8">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=308d0d443">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8c153fcfa">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=4b65b085a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9a8c16aec">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1b47a112a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c7597a1d3">&#167;</a></small></p>
<li>BRINインデックスの演算子クラスでサポートされてないプロシージャを検出して、エラーが報告されるようになりました。 (Álvaro Herrera) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>これまでクラッシュが生じていました。</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ade976f8b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e0d8f49a3">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5d8c58800">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5144e1f8f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f5b4a0b49">&#167;</a>
</p>
<p></small></p>
<li>Appendプランノードの非同期サブプランの待機中に、クエリキャンセルなどの割り込みに応答できるようになりました。  (Heikki Linnakangas) (17.5)(16.9)(15.13)(14.18)</li>
<p>
以前の動作では、サブプランのいずれかが準備完了するまで何も処理されませんでした。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e731e9d5e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=004dbbd72">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d4d34c08c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d2fb076be">&#167;</a>
</p>
<p></small></p>
<li>稼働中のwal senderのI/O統計をより高頻度に報告するようになりました。  (Bertrand Drouvot) (17.5)(16.9)</li>
<p>
これまでは、pg_stat_ioビューはwal senderによるI/O実行をプロセス終了まで集計していませんでした。 これからはそのようなI/Oも最大1秒遅れで報告されます。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5cbbe70a9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e2a82cd23">&#167;</a></small></p>
<li>起動直後のsynchronous_standby_names設定の扱いについて、競合状態が修正されました。  (Melnikov Maksim, Michael Paquier) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
起動後の短時間において、synchronous_standby_namesが有効であるのに、バックエンドプロセスが同期コミットを待機しない場合があり得ました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3339847cc">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c922ae2c4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ec59500a1">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=873aff945">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e2f42f812">&#167;</a></small></p>
<li>問い合わせ内での設定パラメータio_combine_limitの変更が有効になりました。  (Thomas Munro) (17.5)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e27346807">&#167;</a></small></p>
<li>設定パラメータscram_iterationsがINT_MAX（2147483647）に設定されている場合の無限ループが回避されました。  (Kevin K Biju) (17.5)(16.9)</li>
<p>
「ALTER ROLE role1 WITH PASSWORD 'pass'」などで応答がなくなります。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=34fbfe1f5">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=de1484736">&#167;</a></small></p>
<li>json_array()関数の副問い合わせの二重変換によりクラッシュを起こす可能性があり、回避されました。  (Tom Lane) (17.5)(16.9)</li>
<p>
json_array()関数にWITH句を伴う問い合わせを渡した場合にアサート失敗や予期せぬエラーが生じる動作が報告されました。
</p>
<pre>
（エラー発生例）
db1=# SELECT json_array( WITH x AS (SELECT 1) VALUES (TRUE) );
ERROR:  unexpected utility statement in WITH

（修正後バージョンでの出力）
 json_array
------------
 [true]
(1 row)
</pre>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=717e8a1e5">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ca54f9b70">&#167;</a></small></p>
<li>内部関数pg_strtof()の引数endptrがNULLの場合にクラッシュする問題が修正されました。  (Alexander Lakhin, Tom Lane) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
引数endptrにNULLが指定されているコードはリリース済のPostgreSQLには存在しないので、通常影響はありません。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d69c78108">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5c64ece8a">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c7303f01c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=76fbb38ef">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ebe919e95">&#167;</a></small></p>
<li>GUCパラメータの一部設定において、メモリ不足発生後にクラッシュする問題が修正されました。  (Daniel Gustafsson) (17.5)(16.9)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8afec4ef6">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8d48e84c5">&#167;</a></small></p>
<li>Snowball語幹処理でメモリ不足が発生した場合にクラッシュする問題が修正されました。  (Maksim Korotkov) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=7edd2cbc5">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c0c364fa1">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9c46d902b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8388cae55">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=197427fb3">&#167;</a></small></p>
<li>実行計画作成時に、メモリ解放してはいけないSpecialJoinInfo構造体まで解放してしまう問題が修正されました。  (Richard Guo) (17.5)</li>
<p>
これにより、パーティションワイズ結合が有効な場合に、クラッシュすることがありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=727bc6ac3">&#167;</a></small></p>
<li>無効化済のレプリケーションスロットがコピーできないようになりました。  (Shlok Kyal) (17.5)(16.9)</li>
<p>
これまでは、削除済みのWALを指している無効なスロットをコピーできてしまい、意図しないエラーやデータ破損につながる可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a4309e85f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=87e8599e0">&#167;</a></small></p>
<li>ホットスタンバイではないスタンバイサーバ上で論理レプリケーションスロットをリストアできないようになりました。  (Masahiko Sawada) (17.5)(16.9)</li>
<p>
wal_levelがlogicalより低く設定されていると、スロットが有効なまま残り、昇格後にアサート失敗する可能性がありました。
</p>
<p>
ここでの「リストア」はPostgreSQLサービス起動時にファイルに記録されていたスロットを読み込んで有効化することを指します。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=174952ece">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=cc628f661">&#167;</a></small></p>
<li>論理デコーディングでデコーディング位置を指定の位置まで進める処理で、レプリケーションスロットのcatalog_xminが過剰に進められてしまう問題が修正されました。  (Zhijie Hou) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
本来WAL読取処理に必要なはずのカタログ情報がVACUUMで削除され、誤動作やデータの不整合を引き起こす可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=36148b22e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=21a7caeeb">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f6429bd7d">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1f63b3626">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d65485b02">&#167;</a></small></p>
<li>強いロックを取らないDDL操作が論理レプリケーションの対象テーブルである場合にデータ破損を起こす可能性があり、修正されました。  (Shlok Kyal, Hayato Kuroda) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
ALTER PUBLICATION ADD TABLEやALTER TYPEなど、強いロックを取らないDDLによりカタログが更新された場合、WALをデコードする処理がその情報を取得できず、古いカタログ情報を使ってデコードしてしまうことで、結果としてデータが破損してしまう可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=cadaf0ac4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9a2f8b4f0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9f21be08e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0434033e8">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=247ee9415">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d96206f25">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9987c9466">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=90bc4523f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=bb1bc9fa9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=4164d6976">&#167;</a></small></p>
<li>apply workerがエラーに遭遇したものの、PL/pgSQLの関数などでエラー処理された場合に、レプリケーションオリジンを誤ってリセットする問題が修正されました。  (Hayato Kuroda) (17.5)(16.9)</li>
<p>
この結果、同じデータが再度適用されデータが重複してしまうことがありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=05676d87e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0de091a4b">&#167;</a></small></p>
<li>サブスクライバ側のパーティションテーブルにBRINインデックスが存在する場合に、論理レプリケーションのapply workerプロセスがクラッシュすることがあり、修正されました。  (Tom Lane) (17.5)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=788baa9a2">&#167;</a></small></p>
<li>論理レプリケーションのインデックス検索で重複したスナップショットの作成を回避するようになりました。  (Heikki Linnakangas) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>この誤りによる実害はありません。</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c1dd3a944">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8171d2dae">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=50c589992">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=2ef048855">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9b3914f18">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f1ef111a0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=324e0b656">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d765226cb">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=136e68b46">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6c1e79589">&#167;</a></small></p>
<li>サブスクリプション作成時に、オリジンが混在している場合の検知が改良されました。  (Hou Zhijie, Shlok Kyal) (17.5)(16.9)</li>
<p>
サブスクリプション作成時に、サブスクライブ先のテーブルが他のパブリケーションを追随している場合、重複したデータの受信につながる可能性があるため、警告が表示されます。今回の変更では、パーティションの親テーブルまたは子テーブルが別のパブリケーションを追随している場合も警告が出力されるようになりました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0ae1245e0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1c2a2354c">&#167;</a></small></p>
<li>リカバリタイムラインの選択が不適切である場合、エラーメッセージに誤ったチェックポイントに関する情報が出力されていましたが、修正されました。  (David Steele) (17.5)(16.9)(15.13)</li>
<p>
要求されたリカバリタイムラインに到達できない場合、報告されるチェックポイントとタイムラインは、存在する場合、backup_labelから読み取られた値になります。このメッセージは以前はpg_controlファイルから値を報告していましたが、これはbackup_labelのない制御ファイルからリカバリする場合は正しいのですが、backup_labelがある場合には正しくありませんでした。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=29cce279b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b4969a296">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=62bed7bb0">&#167;</a></small></p>
<li>smgropen()内の操作順序が修正されました。  (Andres Freund) (17.5)</li>
<p>
smgr_openコールバックを呼び出す前にSMgrRelationオブジェクトが完全に初期化されていることを確認するようになりました。これにより、コールバックが失敗した場合でも適切にクリーンアップされます。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ee578921b">&#167;</a></small></p>
<li>pgstat_report_stat()内の誤ったアサートが削除されました。  (Michael Paquier) (17.5)(16.9)(15.13)</li>
<p>
pgstat_report_stat()は、実行中のプロセスが自身の統計情報を定期的にサーバに報告するための関数です。特にPostgreSQL 16以降では、WAL senderは定期的に自身のI/O統計情報を報告するようになりましたが、このレポート処理が、他の状況で発生する可能性のあるpgstat_report_stat()の呼び出しと競合するケースが発生しました。また、非常に稀ではありますが、15.xでもバックグラウンドワーカーなどのプロセスによるpgstat_report_stat()の同時呼び出しによって同様の競合が引き起こされる可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=4b6331e0f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e9ab8677b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c1201ffcf">&#167;</a></small></p>
<li>gistFindCorrectParent()の過度に厳密なアサートが修正されました。  (Heikki Linnakangas) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6526d0794">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=419321398">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3c0fe75c4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a749c6f18">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b92482dc3">&#167;</a></small></p>
<li>maintenance_work_memの値が非常に小さい場合、並列バキュームでのアサート失敗が回避されるようになりました。  (Masahiko Sawada) (17.5)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a38dce3c4">&#167;</a></small></p>
<li>プライマリサーバの再起動時にスタンバイサーバで稀に発生するアサート失敗が修正されました。  (Heikki Linnakangas) (17.5)(16.9)(15.13)(14.18)</li>
<p>
内部関数が、古いトランザクションを「実行中でなくなった」とマークする際に、トランザクションの実行状況に関する変数を更新しておらず、ホットスタンバイ中にアサート失敗が発生する可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=302ce5bd9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=2f33de3cd">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b30c77a0e">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=66235baab">&#167;</a></small></p>
<li>PL/pgSQLで、単純なSELECT式クエリでスクロール可能なカーソルが定義されている場合に発生するエラー「ERROR:  unexpected plan node type」を回避するようになりました。  (Andrei Lepikhov) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=1353b1161">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a28c1fb61">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5e56efa7c">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=c196c610b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0f60e1fba">&#167;</a></small></p>
<li>pg_dumpの--cleanモードで、個々のインデックスパーティションを削除しようとしないようになりました。  (Jian He) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
サーバはこのようなDROPコマンドを拒否します。パーティションは、親テーブルまたはパーティションインデックスのいずれかの後続のDROPで、いずれにせよ削除されるため、実際には何の影響もありません。ただし、エラーは発生するため、psqlの--single-transactionモードでリストアする際にはリストアのトランザクション全体が失敗するため、問題を引き起こしました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3424c1075">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a25f21d99">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=7144cd538">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=148cc0105">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6a3e57865">&#167;</a></small></p>
<li>pg_dumpallにおいて、pg_auth_membersに無効なロールのOIDが含まれている場合、無効なロールに対するGRANTコマンドが出力されないようになりました。  (Tom Lane) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
代わりに警告を出して該当エントリをスキップするようになりました。これは、GRANTとDROP ROLEが競合するタイミングで発生する可能性があったカタログ破損への対策です。過去のバージョンではこのような破損が確認されていました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=16eff4261">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d850a6600">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6df3be415">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ce1475acd">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5302ff95c">&#167;</a></small></p>
<li>pg_amcheckおよびpg_upgradeにおいて、libpqが確保したメモリを解放する際に正しい関数が使用されるようになりました。  (Michael Paquier, Ranier Vilela) (17.5)(16.9)(15.13)(14.18)</li>
<p>
これまで、Windows環境の特定のビルド構成、たとえばlibpqがデバッグビルドで、それを使用するアプリケーションが非デバッグビルドである場合などに、クラッシュが発生する可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ee78823ff">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9ca2145b0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0851b6573">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=57467ec7b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f903d4da9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=816149dc6">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ec741d480">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=35a591a04">&#167;</a></small></p>
<li>reindexdbコマンドの並列リインデックス処理におけるスケジューリング  (Alexander Korotkov) (17.5)</li>
<p>の問題が修正されました。従来は、指定した並列数にならない場合がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=09ef2f8df">&#167;</a></small></p>
<li>contrib/pageinspectのheap_page_items()関数において、破損したページを読み込んでもクラッシュしないようになりました。  (Dmitry Kovalenko) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=ecb8e5641">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=2d33cf7b8">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=90a3fd811">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3c2ea65bd">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3f9132ed2">&#167;</a></small></p>
<li>contrib/pg_freespacemapのpg_freespacemap()関数が、ビューなどストレージを持たないリレーションを指定するとアサート失敗する問題が修正されました。  (Tender Wang) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
このような対象を指定した場合は、エラーとして拒否されるようになりました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=51d038da8">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=41ed749e4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0e86bad38">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5ff827389">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=db8238da4">&#167;</a></small></p>
<li>contrib/postgres_fdwで、サブクエリからの制限条件を引き出さないようになりました。  (Alexander Pyhalov) (17.5)</li>
<p>
この修正により、稀に発生するエラー「ERROR: expected expression in subquery output」が回避されます。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=729fe699e">&#167;</a></small></p>
<li>システムのインクルードディレクトリに古いバージョンのlibpq_fe.hが存在する場合にビルドが失敗する問題が修正されました。  (Tom Lane) (17.5)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=f186f90e5">&#167;</a></small></p>
<li>macOS 15.4でビルドが失敗する問題が修正されました。  (Tom Lane, Peter Eisentraut) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
このmacOSアップデートにより、strchrnul()関数の設定プローブが機能しなくなっていました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=915e88968">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a39eb9c77">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0de9560ba">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=71790aef1">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e4440a73c">&#167;</a></small></p>
<li>読み込みストリームのバッファ単位データのvalgrindラベル付けが修正されました。  (Thomas Munro) (17.5)</li>
<p>
これはPostgreSQLのリリース版のコアコードには影響しませんが、バッファ単位のデータ機能を使用する拡張がvalgrindでのテスト中に誤ったエラーが発生する可能性がありました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=57dca6faa">&#167;</a></small></p>
<li>文字列ハッシュコードに関するvalgrindの警告がでないようになりました。  (John Naylor) (17.5)</li>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=fde7c0164">&#167;</a></small></p>
<li>タイムゾーンデータファイルが tzdata release 2025b に更新されました。  (Tom Lane) (17.5)(16.9)(15.13)(14.18)(13.21)</li>
<p>
中国の夏時間法の変更とイランの歴史的修正が含まれます。また、チリのアイセン州のタイムゾーンが年間を通じて UTF-03 に変更されてAmerica/Santiago から分離したため、新たに America/Coyhaique が追加されました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5d5970b9f">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e076120d9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a144cf145">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=fa4244a43">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9da548df3">&#167;</a></small></p>
<li>contrib/dblinkの問い合わせがキャンセルできるようになりました。  (Noah Misch) (16.9)(15.13)(14.18)(13.21)</li>
<p>
これは17.xバージョンむけの変更の後方適用です。デッドロック検出の失敗のためにCREATE DATABASEとDROP DATABASEで起こりうるハングアップを防止します。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=82a8f0f46">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=63f6ecb6b">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a8a918937">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=186c586c3">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=9e129a224">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=aa435d7c4">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=5a3d5c083">&#167;</a></small></p>
<li>スナップショット作成で起きるアサート失敗が修正されました。  (Masahiko Sawada) (15.13)(14.18)</li>
<p>
ロジカルレプリケーションで問題が報告されました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=0f404c581">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=7be51eb4e">&#167;</a></small></p>
<li>アーカイブからリストアされたWALファイルの破損を防ぐため、アーカイブリカバリ時にはWALファイルの再利用と事前割り当てを行わないようになりました。  (Noah Misch, Arun Thirupathi) (14.18)(13.21)</li>
<p>
これは15.x以降バージョンむけの修正の後方適用です。当初は外観的な修正と考えられていましたが、その後の修正を通してデータ破損の防止に有効と判明しました。
</p>
<p><small> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=3635a0a35">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=69a498eb6">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=014a50800">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=a5b0c06da">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=675b771ca">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=cbed472a9">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=b494640e8">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=d0b6acaf0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=8967dddf0">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=20e5ef3ca">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=6b168c129">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=df8ec9634">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=47d2d2982">&#167;</a> <a href="https://git.postgresql.org/gitweb/?p=postgresql.git;h=e77d9cd4f">&#167;</a></small></p>
</ol>

<div>
<a href="https://www.sraoss.co.jp/prod_serv/support/pgsql-mainte/?utm_source=sraoss-techblog&utm_medium=referral&utm_campaign=under-article-pgsql" rel="noopener" style="color:initial;" target="_blank" class="no-ext"></p>
<div style="background-color:#DAEFF6; padding:20px; border-radius:8px; text-align:center;">
SRA OSSでは、PostgreSQL/Pgpool-II のサポートを提供しております。<br />
詳しくは<strong style="color:#2581c4;">弊社ホームページ</strong>をご覧ください。
</div>
<p></a>
</div>

]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>PostgreSQL 14.17 に関する技術情報</title>
		<link>https://www.sraoss.co.jp/tech-blog/pgsql/14-17/</link>
		
		<dc:creator><![CDATA[データベース技術グループ]]></dc:creator>
		<pubDate>Fri, 28 Feb 2025 04:33:49 +0000</pubDate>
				<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[PostgreSQL 14]]></category>
		<category><![CDATA[PostgreSQL 14.16]]></category>
		<category><![CDATA[PostgreSQL 14.17]]></category>
		<category><![CDATA[アップデート]]></category>
		<guid isPermaLink="false">https://www.sraoss.co.jp/tech-blog/?p=16513</guid>

					<description><![CDATA[このリリースは 14.16 からの修正リリース（2025年 2月 20日リリース）です。 14.X からのアップデートではダンプ、リストアは不要です。 ただし、14.14 よりも前のバージョンからアップデートする場合には ...]]></description>
										<content:encoded><![CDATA[<p>このリリースは 14.16 からの修正リリース（2025年 2月 20日リリース）です。<br />
14.X からのアップデートではダンプ、リストアは不要です。</p>
<p>ただし、14.14 よりも前のバージョンからアップデートする場合には、<a href="/tech-blog/pgsql/14-14/" rel="noopener">14.14のリリース情報</a>も参照してください。</p>
<p><span id="more-16513"></span></p>
<h3>PostgreSQL 14.16 から 14.17 への変更点</h3>
<p>17.4, 16.8, 15.12, 14.17, 13.20 の各バージョンが同時にリリースされており、本ページでは共通の記載としています。各修正項目が適用されるバージョン系列番号を項目末尾に括弧書きで記載しています。</p>
<ol>
<li>libpqのクォート付加を行うAPI関数について追加の修正が行われました。  (Andres Freund, Tom Lane) (17)(16)(15)(14)(13)</li>
<p>
CVE-2025-1094への対応で、1つ重大な見落としがありました。PQescapeLiteral() およびPQescapeIdentifier() は、文字列の長さを指定するパラメータを適切に考慮せず、入力文字列のヌル終端文字までを常に読み取っていました。この結果、呼び出し側が長さを指定するパラメータを使用して文字列を切り詰めようとしていた場合でも、不要なテキストが出力に含まれる可能性がありました。さらに、入力テキスト文字列がヌル終端文字がない場合、不正なメモリを読み込み、クラッシュを引き起こす可能性がありました。
</p>
<p>
合わせて、これらのクオート関数のすべてにおいて、無効なエンコーディングが検出された際の処理が変更されました。これまでは無効なシーケンス全体を置き換えていましたが、今回の変更では、その文字の最初のバイトのみが置き換えられました。これにより、クオート済みの文字列に対して呼び出し側アプリケーションが追加の処理を行った場合のリスクを低減できます。
</p>
<li>pg_createsubscriberの小さなメモリリークが修正されました。  (Ranier Vilela) (17)</li>
<li>mesonがbsd_auth.hを利用できるか正しく検知できるよう修正されました。  (Nazir Bilal Yavuz) (17)(16)</li>
<li>遷移テーブルを利用するパーティションテーブルのトリガーに関するクラッシュが修正されました。  (Kyotaro Horiguchi) (14)(13)</li>
<p>
AFTER UPDATEトリガーとAFTER DELETEトリガーの両方が存在する場合、遷移テーブルの必要性が誤って判定されていました。この誤判定により、パーティションをまたぐ更新をした際にクラッシュする問題がありました。
</p>
</ol>

<div>
<a href="https://www.sraoss.co.jp/prod_serv/support/pgsql-mainte/?utm_source=sraoss-techblog&utm_medium=referral&utm_campaign=under-article-pgsql" rel="noopener" style="color:initial;" target="_blank" class="no-ext"></p>
<div style="background-color:#DAEFF6; padding:20px; border-radius:8px; text-align:center;">
SRA OSSでは、PostgreSQL/Pgpool-II のサポートを提供しております。<br />
詳しくは<strong style="color:#2581c4;">弊社ホームページ</strong>をご覧ください。
</div>
<p></a>
</div>

]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
