From 1dfa0e5391ebb60143d0962aade98db8631b5463 Mon Sep 17 00:00:00 2001 From: Konstantin Knizhnik Date: Fri, 20 Sep 2024 08:59:06 +0300 Subject: [PATCH] Add missed files --- pgxn/neon/neon--1.4--1.5.sql | 10 ++++++++++ pgxn/neon/neon--1.5--1.4.sql | 1 + vendor/postgres-v14 | 2 +- vendor/postgres-v15 | 2 +- vendor/postgres-v16 | 2 +- vendor/postgres-v17 | 2 +- 6 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 pgxn/neon/neon--1.4--1.5.sql create mode 100644 pgxn/neon/neon--1.5--1.4.sql diff --git a/pgxn/neon/neon--1.4--1.5.sql b/pgxn/neon/neon--1.4--1.5.sql new file mode 100644 index 0000000000..e1c67e8995 --- /dev/null +++ b/pgxn/neon/neon--1.4--1.5.sql @@ -0,0 +1,10 @@ +\echo Use "ALTER EXTENSION neon UPDATE TO '1.5'" to load this file. \quit + +-- returns minimal LFC cache size (in 8kb pages) provided specified hit rate +CREATE FUNCTION approximate_optimal_cache_size(duration_sec integer default null, min_hit_ration float8 default null) +RETURNS integer +AS 'MODULE_PATHNAME', 'approximate_optimal_cache_size' +LANGUAGE C PARALLEL SAFE; + +GRANT EXECUTE ON FUNCTION approximate_optimal_cache_size(integer,float8) TO pg_monitor; + diff --git a/pgxn/neon/neon--1.5--1.4.sql b/pgxn/neon/neon--1.5--1.4.sql new file mode 100644 index 0000000000..1fa970d224 --- /dev/null +++ b/pgxn/neon/neon--1.5--1.4.sql @@ -0,0 +1 @@ +DROP FUNCTION IF EXISTS approximate_optimal_cache_size(integer,float8) CASCADE; diff --git a/vendor/postgres-v14 b/vendor/postgres-v14 index a317b9b5b9..8f4cad62e3 160000 --- a/vendor/postgres-v14 +++ b/vendor/postgres-v14 @@ -1 +1 @@ -Subproject commit a317b9b5b96978b49e78986697f3dd80d06f99a7 +Subproject commit 8f4cad62e30b942350a7eb0cea4d75de6cec2d1a diff --git a/vendor/postgres-v15 b/vendor/postgres-v15 index 6f6d77fb59..3718b4cfc8 160000 --- a/vendor/postgres-v15 +++ b/vendor/postgres-v15 @@ -1 +1 @@ -Subproject commit 6f6d77fb5960602fcd3fd130aca9f99ecb1619c9 +Subproject commit 3718b4cfc822084e813b56d7839f74b49997e032 diff --git a/vendor/postgres-v16 b/vendor/postgres-v16 index 0baa7346df..52504a3e80 160000 --- a/vendor/postgres-v16 +++ b/vendor/postgres-v16 @@ -1 +1 @@ -Subproject commit 0baa7346dfd42d61912eeca554c9bb0a190f0a1e +Subproject commit 52504a3e80e48d94df1fed766445ace61228a9f1 diff --git a/vendor/postgres-v17 b/vendor/postgres-v17 index 9156d63ce2..aa22728787 160000 --- a/vendor/postgres-v17 +++ b/vendor/postgres-v17 @@ -1 +1 @@ -Subproject commit 9156d63ce253bed9d1f76355ceec610e444eaffa +Subproject commit aa227287878c71d1c4d8e9033fb1577415503e4d