• R/O
  • HTTP
  • SSH
  • HTTPS

Listed des commits

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

RSS
Révision l'heure Auteur
45db08b master 2016-04-25 14:19:47 MasaoFujii

Add .gitignore entries for files generated by build and regression test.

1fb9bb9 REL1_3_7 2016-03-25 15:52:10 Kyotaro Horiguchi

Add stats-injection feature.

pg_dbms_stats potentially have an ability to give arbitrary stats to
the planner but some stats items are of anyarray type so they were
impossible to be modified using SQL commands. This commit provides
some subsidiary functions that enable administrators to modify
anyarray stuffs in dbms_stats.column_stats_locked by arbitrary values.
(Only Japanese doc is provided so far)

a913d5f 2016-03-25 10:52:30 Kyotaro Horiguchi

Prepare for release 1.3.7

733cff0 2016-01-15 16:57:01 Kyotaro Horiguchi

Support PostgreSQL 9.5.0.

Added support for PostgreSQL 9.5.0.

c45371c 2016-01-15 16:50:08 Kyotaro Horiguchi

Refactor Makefile

Simplified Makefile. Makefile gets too complex and ugly so refactored
it for readability. This change also allows to share some script among
multiple PG versions if possible.

0f59148 2015-08-18 21:17:45 Kyotaro Horiguchi

Follow the change of regression test framework.

pg_regress no longer installs extra modules since 9.5. This commit
makes Makefile to give --extra-install flag to pg_regress only when
required.

86887d0 2015-08-18 21:17:45 Kyotaro Horiguchi

Remove misplaced space.

Removed a misplaced space placed after continuation backslash.

9a774b0 2015-08-18 21:16:40 Kyotaro Horiguchi

Rename a static function to avoid conflict.

CopyArrayEls is a static function but also has a definition for
different function in core header. Rename it CopyAnyArrayEls so that
compler doesn't complain.

3cc21a6 2015-08-18 20:50:03 Kyotaro Horiguchi

Catch up the change of representation of view definition.

Representation of view definition was changed at 9.3.5 by commit
164acbe33c0951221b1ae2e5285c793f404a75a1.

6709265 2015-08-18 20:48:49 Kyotaro Horiguchi

Stabilize regression test.

Sort results to avoid altering of tuples in regression test.

217f38b anyarray_work 2015-01-07 16:11:09 Kyotaro Horiguchi

Allow dbms_stats.prepare_statstweak() to take multi-word type names.

The function ends up with an error being given type names consists of
more than a word. This commit makes the spaces between keywords to be
replaced with underscores. The function takes the parameter as regtype
so every white space consists of exactly one space. Therefore
considering only the single-space case is enough.

12d39be 2014-12-22 12:55:44 Kyotaro Horiguchi

Merge branch 'anyarray_work' of https://scm.sourceforge.jp/gitroot/pgdbmsstats/pg_dbms_stats into anyarray_work

10a1f78 2014-12-22 12:47:03 Kyotaro Horiguchi

Add subsidiary functions to tweak dummy statistics.

pg_statictics has some columns of anyarray which cannot be updated
through ordinary SQL statements and dbms_stats.column_stats_locked
inherits the characteristic. Though, it is inconvenient for those who
wants to tweak statistics, especially MCV, HISTOGRAM and like which
are of anyarray type.

This commit adds some functions to handle dbms_stats.anyarray to
enable them to write dummy (locked) statistics by hand.

Anyarray values can be updated by steps like following.

=# SELECT dbms_stats.anyarray_basetype(stavalues1)
FROM dbms_stats.column_stats_locked
WHERE starelid = xxxx AND staattnum = x;
anyarray_basetype
-------------------
float4
(1 row)
=# SELECT dbms_stats.prepare_statstweak('float4');
-------------------------------------------------------------------------------
----
(func dbms_stats._realary_anyarray(real[]), cast (real[] AS dbms_stats.anyarra
y))
(1 row)
=# UPDATE dbms_stats.column_stats_locked
SET stavalues1 = '{1.1,2.2,3.3}'::float4[]
WHERE starelid = xxxx AND staattnum = x;
UPDATE 1

e1810f6 REL1_3_6 2014-12-22 12:33:22 Kyotaro Horiguchi

Support for 9.4 added officially.

Since PostgreSQL REL9_4_0 has been released, pg_dbms_stats became to
support 9.4. There's no functional change made and some fixes in the
steps to build RPM packages has been made.

acf1fd4 2014-12-19 14:15:22 Kyotaro Horiguchi

Add subsidiary functions to tweak dummy statistics.

pg_statictics has some columns of anyarray which cannot be updated
through ordinary SQL statements and dbms_stats.column_stats_locked
inherits the characteristic. Though, it is inconvenient for those who
wants to tweak statistics, especially MCV, HISTOGRAM and like which
are of anyarray type.

This commit adds some functions to handle dbms_stats.anyarray to
enable them to write dummy (locked) statistics by hand.

Anyarray values can be updated by steps like following.

=# SELECT dbms_stats.anyarray_basetype(stavalues1)
FROM dbms_stats.column_stats_locked
WHERE starelid = xxxx AND staattnum = x;
anyarray_basetype
-------------------
float4
(1 row)
=# SELECT dbms_stats.prepare_statstweak('float4');
-------------------------------------------------------------------------------
----
(func dbms_stats._realary_anyarray(real[]), cast (real[] AS dbms_stats.anyarra
y))
(1 row)
=# UPDATE dbms_stats.column_stats_locked
SET stavalues1 = '{1.1,2.2,3.3}'::float4[]
WHERE starelid = xxxx AND staattnum = x;
UPDATE 1

47a6e48 2014-12-01 13:28:06 Kyotaro Horiguchi

Fix release date of 1.3.6 in SPEC files.

4b35543 2014-12-01 12:44:36 Kyotaro Horiguchi

Fixed regression tests to avoid test failure for 9.1.

A test item added in ut-common at 1.3.5 failed for 9.1 because the
error message differs from later versions. Moved it to
version-specific tests.

c16d5d2 2014-12-01 12:43:50 Kyotaro Horiguchi

Fixed import function according to the current stats table
configuration.

The stats tables prefixed by underscore have been removed in the last
release, but import function did not follow that change. It results in
failure of import_xxx_stats() for dump files of any version including
itself.

3557b1c 2014-12-01 11:13:51 Kyotaro Horiguchi

Fix target version of 9.4 regtests, which was no harm.

40961cf 2014-11-25 17:26:27 Kyotaro Horiguchi

Prepare for 1.3.6

be8d646 REL1_3_5 2014-11-17 18:13:11 Kyotaro Horiguchi

Change release number of spec files to 2.

The previous release was based on the funcion-version of
HeapTupleGetDatum() so they cannot be loaded on the minor versions
earlier than 9.1.14, 9.2.9 and 9.3.5 with link failure of
HeapTupleHeaderGetDatum.

I confirmed that the commit(*1) does not affect pg_dbms_stats and
decided to build rpm releases on 9.1.13, 9.2.8 and 9.3.4 after this.

There has been one bug after 1.3.5 was released but it is a bug in
error message of rarely used SQL function so no increment of version
number.

*1: d3c9f9c5b57d2a8a7ab065a6b942703854ec5e97 for 9.1
315442c01156d4f6c0f766ec51da090a613d03b8 for 9.2
edde59db1339397ec389d45e4c0d0f86064dad1a for 9.3
621a99a666ba1a27b852dc5ddc0e1b224c388f53 on master branch

ee364a8 2014-11-17 18:05:28 Kyotaro Horiguchi

Fix exception messages.

Exception messages in definitions of dbms_stats.restore(bid, relname,
colname) were incorrect. This causes incomprehensive message like this,

ERROR: too many parameters specified for RAISE

There's no harm other than the bogus message.

f42f655 2014-11-14 09:56:14 Kyotaro Horiguchi

Edit ChangeLogs. Fixed some misspellings.

f85078c 2014-11-14 09:56:14 Kyotaro Horiguchi

Correct permission of dummy statistics tables.

On the current implement, when planner requested the statistics
for a column, pg_dbms_stats takes it from the dummy statistics
tables via views which gives stats only of columns that the
current user can SELECT.
Under that way of restriction, pg_dbms_stats cannot read the
dummy statistcs of objects invisible from the current user so
accessing such objects via views will done using system
statistics, even if their statistics are locked.
This commit makes the dummy stats tables visible only by the
owner, then makes pg_dbms_stats access the dummy statistics as
the owner. It also changes the visibility/usability of some other
objects such as dbms_stats schema, some functions as a result.

9aee19d 2014-11-14 09:56:14 Kyotaro Horiguchi

Fix and modify regression test.

The delay of stats collector is expected up to 0.5s so 0.5s is not
enough for waiting.

4d0db47 2014-11-14 09:56:14 Kyotaro Horiguchi

Make environment for 1.3.5

bc5f533 REL1_3_4 2014-11-14 09:56:14 Kyotaro Horiguchi

Update RPM release number to 2.

b246b68 2014-11-14 09:56:13 Kyotaro Horiguchi

default_version of pg_dbms_stats.control is corrected.

05193d5 2014-09-16 20:42:36 Kyotaro Horiguchi

Version 1.3.4

2c63d63 2014-09-16 19:55:10 Kyotaro Horiguchi

Fix a bug that faultily invalidates stored stats for inheritance parents.

Internal on-memory cache mechanism wrongly handled stainherit
flag. This is resulted in a false response for inheritance parents,
which let the planner use the real statistic instead of the stored
one.