• R/O
  • HTTP
  • SSH
  • HTTPS

pg_dbms_stats: List of commits


RSS
Rev. Time Author
bc113c1 PG12 REL12_1_4_1 2020-10-27 16:38:14 Kyotaro Horiguchi

Change version to 1.4.1.

4cab478 2020-10-27 16:38:08 Kyotaro Horiguchi

Add .bc to .gitignore

32b8644 2020-10-27 16:38:03 Kyotaro Horiguchi

Do not let installation script replace existing SQL functions

The installation script created some functions using CREATE OR REPLACE
FUNCTION. That command replaces function body but doesn't fix
ownership, which leads to a security issue that allows attacker to run
arbitrary script with elevated privileges. Let installation script
rather error-out in that case.

Reported by Egashira Yusuke.

6095812 PG13 master 2020-10-27 16:29:38 Kyotaro Horiguchi

Change version to 1.5.0

Preparation for release.

1e24210 2020-10-27 16:29:38 Kyotaro Horiguchi

Add .bc to .gitignore

2fcb481 2020-10-27 16:25:25 Kyotaro Horiguchi

Do not let installation script replace existing SQL functions

The installation script created some functions using CREATE OR REPLACE
FUNCTION. That command replaces function body but doesn't fix
ownership, which leads to a security issue that allows attacker to run
arbitrary script with elevated privileges. Let installation script
rather error-out in that case.

Reported by Egashira Yusuke.

53e9472 PRE_12 REL1_3_12 2020-10-27 14:10:58 Kyotaro Horiguchi

Change version to 1.3.12.

8093e56 2020-10-27 14:03:13 Kyotaro Horiguchi

Do not replace existing function by installation script

The installation script created some functions using CREATE OR REPLACE
FUNCTION. Those commands replace function body but don't fix
ownership, which leads to a security issue if those functions are
maliciously crafted by an attacker. Just ripping-off "OR REPLACE"
prevents that issue by causing an error for that case.

Reported by Egashira Yusuke.

e6b337d 2020-10-27 14:03:13 Kyotaro Horiguchi

Add .bc file to .gitignore

d0f6104 2020-09-09 16:38:45 Kyotaro Horiguchi

Make installation script more secure.

Recently, PostgreSQL introduced a security enhancement related to
"trusted extensions". pg_dbms_stats is not a trusted extension, but it
is always important that installation scripts are resistant to
maliciously crafted environment. This commit makes all references to
system objects fully-qualified to achieve the robustness.

Reported by Egashira Yusuke.

c166dbc 2020-09-09 16:32:59 Kyotaro Horiguchi

Correct extension version.

pg_dbms_stats.control had a wrong version name that prevents the
installation script from being found. Fixed it.

01fa74e 2020-09-09 15:57:56 Kyotaro Horiguchi

Make installation script more secure.

Recently, PostgreSQL introduced a security enhancement related to
"trusted extensions". pg_dbms_stats is not a trusted extension, but it
is always important that installation scripts are resistant to
maliciously crafted environment. This commit makes all references to
system objects fully-qualified to achieve the robustness.

Reported by Egashira Yusuke.

b7e190d 2020-08-07 17:53:16 Kyotaro Horiguchi

Fix SPEC file.

Fix spec file so that llvmjit packages is available.

185073f REL12_1_4_0 2020-08-07 15:33:11 Kyotaro Horiguchi

Fix spec file

Fix SPEC file so that llvmjit package is created.

48d200b 2020-08-07 15:30:00 Kyotaro Horiguchi

Fix project URL

89c5219 REL13_1_5_0_BETA1 2020-08-06 23:40:57 Kyotaro Horiguchi

1.5.0 beta 1, Support PostgreSQL 13

Supports PostgreSQL 13.

- Follow API change of planner_hook.
- Remove useless code.
- Adjust regression tests.
- Disable one test item no longer doable.

1896797 2020-08-06 18:06:34 Kyotaro Horiguchi

Suppoert PostgreSQL 12, version 1.4.0.

Support PostgreSQL 12. pg_statisitc has new columns so the amount of
the changes of code and test scripts are so large that I decidec to
diverge this version from that for older PG versions, which have gone
to the branch PRE_12.

0ce9a67 REL1_3_11_PG11 2019-08-26 16:41:17 Kyotaro Horiguchi

Fix package dependency

Fixed dependency definition of RPM SPEC file.

28aa182 2019-08-26 16:13:07 Kyotaro Horiguchi

Add release for PG11

I forgot to release 1.3.11 for PG11. This is that.

e79f24e REL1_3_11 2018-09-26 14:07:42 Kyotaro Horiguchi

Change version to 3.9.11

ae98566 2018-09-26 11:38:08 Kyotaro Horiguchi

Fix a crash bug related to non-baserel RTEs and function indexes

dbms_stats_get_index_stats forgot that simple_rel_array may have empty
slots corresponding to non-baserel RTEs. Server crashes when saved
statitistics for function indexes are accessed while planning such a
query. This is fixed by simply skipping such entries.

2650dfa 2018-06-18 17:16:42 Kyotaro Horiguchi

Disalbe autovacuum during regression test

Autovacuum is one of the sources of unstability of regression
test. This patch turn it off during regression test.

58d0999 2018-06-18 17:16:42 Kyotaro Horiguchi

Move a test item because of a change of an error message

One error messages has been changed replacing the word 'relation' with
'table' and this hits the ut-common test case. Moved the test case
into ut-<version> files.

2f47103 2018-06-18 17:16:42 Kyotaro Horiguchi

Support PG11.

Follow the changes of some core functions.

8fb4896 2018-06-18 16:03:26 Kyotaro Horiguchi

Fix calling parameter of SPI_execute_plan

Fixed a long-standing bug but having done no harm over all existing
versions. SPI_execute_plan's third paramter is char [] but it is
called with bool []. The bool value is false and it is different from
'n', which represents !is_null so it has been worked as expected as the
result.

f52a9f6 REL1_3_10 2018-04-05 18:57:23 Kyotaro Horiguchi

Bumped up version to 1.3.10

Bumped up version to 1.3.10

967daea 2018-04-05 18:38:58 Kyotaro Horiguchi

Change copyright year of files

Change copyright year up to 2018.

5c16e06 2018-04-05 18:32:44 Kyotaro Horiguchi

Add description that it is obsolete in ChangeLog files

ChangeLog files have not maintained for a long time. The same
information is seen in commit logs nowadays. First add that
description to the files, then remove them later.

4f2c3f6 2018-04-05 18:30:04 Kyotaro Horiguchi

Remove support for PG9.2

PostgreSQL 9.2 have reached EOL. Remove support for the version.

3e61777 2018-04-05 17:13:03 Kyotaro Horiguchi

Fix relcache invalidation handling

Relcache invalidation callback can be called at every chance while
planning. Planner can crash if the invalidation callblack frees
statistics cache that have been passed to planner. This patch let
pg_dbms_stats refrain from freeing statistics cache immediately by
relcache invalidation. Invalidated cache entries are removed before
and after planner runs.

Show on old repository browser