OSDN Git Service

pgbigm/pg_bigm.git
6 months agoSwitch CI from Travis CI to GitHub Actions (#12) master
Fujii Masao [Tue, 10 Oct 2023 16:04:05 +0000 (01:04 +0900)]
Switch CI from Travis CI to GitHub Actions (#12)

Enable GitHub Actions and remove Travis CI for regression tests.

This commit enables GitHub Actions to run regression tests for pg_bigm.
GitHub Actions now tests on PostgreSQL 9.2 or later. Note that pg_bigm
supports PostgreSQL 9.1, but it can't be compiled on the latest Ubuntu
used in GitHub Actions, so tests are omitted for v9.1.

Also this commit discontinues the use of Travis CI as our CI service for
running regression tests due to issues that prevented successful
test execution.

Back-patch to pg_bigm 1.2.

12 months agoMerge pull request #8 from MasaoFujii/update-readme
Fujii Masao [Sat, 15 Apr 2023 16:35:40 +0000 (01:35 +0900)]
Merge pull request #8 from MasaoFujii/update-readme

Update README.md to point to GitHub Pages documentation.

12 months agoUpdate README.md to point to GitHub Pages documentation.
Fujii Masao [Tue, 11 Apr 2023 10:55:19 +0000 (19:55 +0900)]
Update README.md to point to GitHub Pages documentation.

This commit updates the README.md file to include a link to
the documentation deployed at GitHub Pages, making it easier
for users to access up-to-date documentation for pg_bigm.
Additionally, it removes a description that suggests an obsolete
official site for pg_bigm, reducing confusion caused by
outdated information. Furthermore, this commit adds copyright
information to the README.md file to ensure proper attribution
for the project.

These changes improve the clarity and accuracy of the project's
documentation and information.

12 months agoMerge pull request #5 from MasaoFujii/master
Fujii Masao [Tue, 11 Apr 2023 09:48:44 +0000 (18:48 +0900)]
Merge pull request #5 from MasaoFujii/master

Fix compilation error in pg_bigm caused by PostgreSQL 16dev update

12 months agoRename html/ directory to docs/ for GitHub Pages compatibility.
Fujii Masao [Mon, 10 Apr 2023 14:03:14 +0000 (23:03 +0900)]
Rename html/ directory to docs/ for GitHub Pages compatibility.

To ensure compatibility with GitHub Pages, this commit renames
the html/ directory to docs/. This change is necessary because
GitHub Pages uses the docs/ directory as a default location for
serving web pages. By renaming the directory, the project's
documentation will be accessible on the web when published to
GitHub Pages.

12 months agoFix compilation error in pg_bigm caused by PostgreSQL 16dev update
Fujii Masao [Mon, 10 Apr 2023 13:38:21 +0000 (22:38 +0900)]
Fix compilation error in pg_bigm caused by PostgreSQL 16dev update

Commit 0a20ff54f5 in PostgreSQL 16dev caused pg_bigm to fail compilation
due to a missing header file. This commit fixes the issue by
updating bigm_op.c to include utils/guc.h. This change ensures that
pg_bigm is compatible with PostgreSQL 16dev,
allowing for continued use and development of the extension.

Back-patch to pg_bigm 1.2.

12 months agoCorrect documentation for bigm_similarity to indicate case-sensitivity.
MasaoFujii [Fri, 24 Mar 2023 11:31:53 +0000 (20:31 +0900)]
Correct documentation for bigm_similarity to indicate case-sensitivity.

The previous documentation for bigm_similarity incorrectly stated that
it was not case-sensitive. This commit updates the documentation to
reflect that bigm_similarity IS case-sensitive.

Please note that the Japanese version of the documentation is not updated
as it already accurately explains bigm_similarity and its case-sensitivity.

Back-patch to pg_bigm 1.1.

Reported and suggested by: Vin Yap
Discussion: https://github.com/pgbigm/pg_bigm/issues/3

13 months agoAdd the news about the release of RPM files for RHEL9 family.
MasaoFujii [Sun, 5 Mar 2023 13:31:05 +0000 (22:31 +0900)]
Add the news about the release of RPM files for RHEL9 family.

The RPMs of pg_bigm 1.2-20200228 on PostgreSQL 11 to 15 for
RHEL 9 family were released.

Back-patch to pg_bigm 1.2.

Author: Katsuragi Yuta
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2023-February/000367.html

14 months agoUpdate .travis.yml to ask Travis CI to build and test on PostgreSQL 15.
MasaoFujii [Tue, 31 Jan 2023 01:53:37 +0000 (10:53 +0900)]
Update .travis.yml to ask Travis CI to build and test on PostgreSQL 15.

Back-patch to v1.2.

Author: Shinya Kato
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2023-January/000363.html

14 months agoUpdate copyright for 2023.
MasaoFujii [Sat, 21 Jan 2023 16:07:48 +0000 (01:07 +0900)]
Update copyright for 2023.

Update all files in master and all back branches.

Author: Shinya Kato
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2023-January/000362.html

16 months agoAdd the news about the release of RPM files.
MasaoFujii [Tue, 22 Nov 2022 16:10:28 +0000 (01:10 +0900)]
Add the news about the release of RPM files.

The RPMs of pg_bigm-1.2-20200228 for PostgreSQL 15 are released.

Back-patch to pg_bigm 1.2.

18 months agoDocument that pg_bigm 1.2 was confirmed to work with PostgreSQL15.
MasaoFujii [Thu, 13 Oct 2022 13:42:16 +0000 (22:42 +0900)]
Document that pg_bigm 1.2 was confirmed to work with PostgreSQL15.

Back-patch to v1.2.

2 years agoUpdate copyright for 2022.
MasaoFujii [Mon, 17 Jan 2022 23:44:17 +0000 (08:44 +0900)]
Update copyright for 2022.

Update all files in master and all back branches.

Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2022-January/000360.html

2 years agoClean up code using "(expr) ? true : false"
MasaoFujii [Thu, 2 Dec 2021 06:20:21 +0000 (15:20 +0900)]
Clean up code using "(expr) ? true : false"

Commit fd0625c7a9 in PostgreSQL simplified code paths where were
already using a boolean or used an expression that led to zero or one,
making the extra bits unnecessary. This commit improves pg_bigm
code in the same way.

Back-patch to v1.2, to make future back-patching easy though
this patch is classified as refactoring only.

Author: Yang Rong
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2021-November/000358.html

2 years agoAdd the news about the release of RPM files.
MasaoFujii [Thu, 7 Oct 2021 01:23:04 +0000 (10:23 +0900)]
Add the news about the release of RPM files.

The RPMs of pg_bigm-1.2-20200228 for PostgreSQL 14 are released.

Back-patch to pg_bigm 1.2.

Author: Ken Kato
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2021-October/000356.html

2 years agoDocument that pg_bigm 1.2 was confirmed to work with PostgreSQL14.
MasaoFujii [Wed, 29 Sep 2021 02:27:06 +0000 (11:27 +0900)]
Document that pg_bigm 1.2 was confirmed to work with PostgreSQL14.

Back-patch to v1.2.

Author: Ken Kato
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2021-September/000354.html

2 years agoUpdate the URL of Travis-CI status badge.
MasaoFujii [Wed, 14 Jul 2021 11:20:01 +0000 (20:20 +0900)]
Update the URL of Travis-CI status badge.

This update is necessary because the CI platform was migrated
from travis-ci.org to travis-ci.com.

Back-patch to v1.2.

2 years agoUpdate .travis.yml to ask Travis CI to build and test on PostgreSQL 14.
MasaoFujii [Tue, 13 Jul 2021 23:55:50 +0000 (08:55 +0900)]
Update .travis.yml to ask Travis CI to build and test on PostgreSQL 14.

Back-patch to v1.2.

2 years agoUpdate copyright for 2021.
MasaoFujii [Fri, 30 Apr 2021 02:52:03 +0000 (11:52 +0900)]
Update copyright for 2021.

Update all files in master and all back branches.

Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2021-April/000352.html

3 years agoAdd the news about the release of RPM files.
MasaoFujii [Tue, 17 Nov 2020 08:48:14 +0000 (17:48 +0900)]
Add the news about the release of RPM files.

The RPMs of pg_bigm-1.2-20200228 for PostgreSQL 13 are released.

Back-patch to pg_bigm 1.2.

Author: Shinya Kato
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-November/000350.html

3 years agoDocument that pg_bigm 1.2 was confirmed to work with PostgreSQL13.
MasaoFujii [Thu, 5 Nov 2020 01:06:56 +0000 (10:06 +0900)]
Document that pg_bigm 1.2 was confirmed to work with PostgreSQL13.

Back-patch to v1.2.

Author: Yuki Seino
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-November/000348.html

3 years agoMake Travis CI run installcheck-trgm regression test.
MasaoFujii [Wed, 14 Oct 2020 17:01:00 +0000 (02:01 +0900)]
Make Travis CI run installcheck-trgm regression test.

Back-patch to v1.1 where installcheck-trgm test was added.

3 years agoUpdate .travis.yml to ask Travis CI to build and test on PostgreSQL 13.
MasaoFujii [Sat, 3 Oct 2020 15:49:27 +0000 (00:49 +0900)]
Update .travis.yml to ask Travis CI to build and test on PostgreSQL 13.

Back-patch to v1.2.

4 years agoAdd the news about the release of RPM files.
MasaoFujii [Tue, 31 Mar 2020 17:51:01 +0000 (02:51 +0900)]
Add the news about the release of RPM files.

The RPMs of pg_bigm-1.2-20200228 for PostgreSQL 9.4 to 12 are released.

Back-patch to pg_bigm 1.2.

Author: Torikoshi Atsushi
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-March/000346.html

4 years agoUpdate BIGM_LAST_UPDATE to '2020.02.28'.
MasaoFujii [Fri, 28 Feb 2020 05:31:21 +0000 (14:31 +0900)]
Update BIGM_LAST_UPDATE to '2020.02.28'.

This commit also updates the documents, for upcoming release.

Author: Torikoshi Atsushi

4 years agoUpdate release notes of pg_bigm 1.2 for upcoming minor version release.
MasaoFujii [Thu, 27 Feb 2020 11:50:56 +0000 (20:50 +0900)]
Update release notes of pg_bigm 1.2 for upcoming minor version release.

This commit also adds the news about release of 1.2-202002XX.
XX part in 202002XX will be replaced with actual release date later.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000339.html

4 years agoUpdate release notes of pg_bigm 1.1 for upcoming minor version release.
MasaoFujii [Thu, 27 Feb 2020 11:27:28 +0000 (20:27 +0900)]
Update release notes of pg_bigm 1.1 for upcoming minor version release.

This commit also adds the news about release of 1.1-202002XX.
XX part in 202002XX will be replaced with actual release date later.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000339.html

4 years agoStabilize the result of pg_gin_pending_stats() regression test.
MasaoFujii [Sat, 15 Feb 2020 14:16:02 +0000 (23:16 +0900)]
Stabilize the result of pg_gin_pending_stats() regression test.

Previously pg_bigm regression test checked the value of pages column
that pg_gin_pending_stats() returns. But this value could vary from
block size to block size in PostgreSQL server. This leaded to
unexpected failure of regression test on PostgreSQL built with
non-default block size.

To avoid this issue, this patch gets rid of the check for pages column
from the regression test, to stabilize the result of test whatever
block size is used. The value of pages column that
pg_gin_pending_stats() is calculated in PostgreSQL server side,
so there is no strong reason why pg_bigm regression test needs to
verify the value and we determined that it's ok to get rid of that
check.

Back-patch to pg_bigm 1.1 where regression test for
pg_gin_pending_stats() was added.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000331.html

4 years agoUpdate copyright for 2020.
MasaoFujii [Fri, 7 Feb 2020 09:08:00 +0000 (18:08 +0900)]
Update copyright for 2020.

Update all files in head and all back branches.

Author: Torikoshi Atsushi
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000329.html

4 years agoFix compiler warning in bigmstrcmp().
Fujii Masao [Tue, 4 Feb 2020 12:20:19 +0000 (21:20 +0900)]
Fix compiler warning in bigmstrcmp().

Commit 86d78ef in PostgreSQL caused the compiler to report
the following warning when compiling pg_bigm on PostgreSQL 12
or later. This commit fixes it.

    warning: inline function 'bigmstrcmp' declared but never defined [enabled by default]

To suppress the compiler warning, this commit gets rid of
"extern inline" declaration for bigmstrcmp() and moves its definition
into the header file as "static inline" function.

Back-patch to pg_bigm 1.0. Since pg_bigm 1.1 and 1.0 don't support
PostgreSQL 12 or later, basically this commit doesn't need
to be back-patch to 1.1 and 1.0. But we do that because making
the code look similar in all branches for the ease of future
maintenance.

Author: Torikoshi Atsushi
Reviewed-by: Fujii Masao
Discussion: https://osdn.net/projects/pgbigm/lists/archive/hackers/2020-February/000327.html

4 years agoAdd *.bc to .gitignore.
MasaoFujii [Fri, 4 Oct 2019 07:56:27 +0000 (16:56 +0900)]
Add *.bc to .gitignore.

4 years agoAdd all the documents to master branch.
MasaoFujii [Fri, 4 Oct 2019 07:34:11 +0000 (16:34 +0900)]
Add all the documents to master branch.

This is necessary to host all the documents in the official mirror
github site for pg_bigm.

4 years agoUpdate README.md.
MasaoFujii [Fri, 4 Oct 2019 07:03:21 +0000 (16:03 +0900)]
Update README.md.

This commit updates URLs in it so that "https" is used instead of "http".
Also this commit updates the URL for Travis-CI.

4 years agoUpdate BIGM_LAST_UPDATE to '2019.10.03'.
MasaoFujii [Thu, 3 Oct 2019 13:05:41 +0000 (22:05 +0900)]
Update BIGM_LAST_UPDATE to '2019.10.03'.

This commit also updates the documents, for upcoming release.

4 years agoAdd pg_bigm Development Group copyright.
MasaoFujii [Tue, 1 Oct 2019 15:23:54 +0000 (00:23 +0900)]
Add pg_bigm Development Group copyright.

4 years agoAdd the news about release of 1.2-201910XX.
MasaoFujii [Tue, 1 Oct 2019 13:19:34 +0000 (22:19 +0900)]
Add the news about release of 1.2-201910XX.

XX part in 201910XX will be replaced with actual release date later.

4 years agoUpdate release notes of pg_bigm 1.2 for upcoming minor version release..
MasaoFujii [Tue, 1 Oct 2019 12:52:54 +0000 (21:52 +0900)]
Update release notes of pg_bigm 1.2 for upcoming minor version release..

4 years agoDocument that pg_bigm 1.2 was confirmed to work with PostgreSQL12.
MasaoFujii [Tue, 1 Oct 2019 12:44:17 +0000 (21:44 +0900)]
Document that pg_bigm 1.2 was confirmed to work with PostgreSQL12.

4 years agoDon't include access/tuptoaster.h in bigm_gin.c if PostgreSQL 13 or later.
MasaoFujii [Mon, 30 Sep 2019 03:49:07 +0000 (12:49 +0900)]
Don't include access/tuptoaster.h in bigm_gin.c if PostgreSQL 13 or later.

Commit 8b94dab066 in PostgreSQL 13dev split tuptoaster.c into three separate
files and removed tuptoaster.h. This commit makes bigm_gin.c include
tuptoaster.h only in PostgreSQL 12 or before.

This commit is necessary for pg_bigm to work with PostgreSQL 13 or later.

4 years agoUpdate .travis.yml to ask Travis CI to build and test on PostgreSQL 12.
MasaoFujii [Mon, 30 Sep 2019 03:43:04 +0000 (12:43 +0900)]
Update .travis.yml to ask Travis CI to build and test on PostgreSQL 12.

5 years agoReduce the noise in regression test.
MasaoFujii [Mon, 8 Apr 2019 11:39:54 +0000 (20:39 +0900)]
Reduce the noise in regression test.

Commit 02ddd49932 in PostgreSQL changed the float output format,
and which caused the regression test to fail. This patch uses
an explicit setting of extra_float_digits=0 for test output that
is not expected to be exactly reproducible.

5 years agoUpdate pg_bigm so that it can work with PostgreSQL 12dev.
MasaoFujii [Mon, 8 Apr 2019 08:49:39 +0000 (17:49 +0900)]
Update pg_bigm so that it can work with PostgreSQL 12dev.

In PostgreSQL 12dev, commit 4b21acf522 moved the declarations of
relation_open() and relation_close into access/relation.h.
Also commit 578b229718 changed the interface of CreateTemplateTupleDesc().
These changes made pg_bigm fail to be compiled on 12dev.

5 years agoDocument that pg_bigm 1.2 and 1.1 were confirmed to work with PostgreSQL 11.
MasaoFujii [Tue, 6 Nov 2018 18:35:24 +0000 (03:35 +0900)]
Document that pg_bigm 1.2 and 1.1 were confirmed to work with PostgreSQL 11.

5 years agoUpdate .travis.yml to ask Travis CI to build and test on PostgreSQL 11.
MasaoFujii [Tue, 6 Nov 2018 18:13:22 +0000 (03:13 +0900)]
Update .travis.yml to ask Travis CI to build and test on PostgreSQL 11.

6 years agoDocument that pg_bigm 1.2 and 1.1 were confirmed to work with PostgreSQL 10.
MasaoFujii [Thu, 5 Oct 2017 15:51:16 +0000 (00:51 +0900)]
Document that pg_bigm 1.2 and 1.1 were confirmed to work with PostgreSQL 10.

6 years agoUpdate .travis.yml to ask Travis CI to build and test on PostgreSQL 10.
MasaoFujii [Fri, 29 Sep 2017 15:00:07 +0000 (00:00 +0900)]
Update .travis.yml to ask Travis CI to build and test on PostgreSQL 10.

7 years agoAdd the news about the release of RPM files.
Masahiko Sawada [Fri, 21 Oct 2016 16:13:38 +0000 (01:13 +0900)]
Add the news about the release of RPM files.

The RPMs of pg_bigm-1.2-20161011 for PostgreSQL 9.1
to 9.6 are released.

Patched to REL1_2_STABLE branch.

7 years agoAdd the news about release of 1.2-20161011.
MasaoFujii [Tue, 11 Oct 2016 12:16:00 +0000 (21:16 +0900)]
Add the news about release of 1.2-20161011.

7 years agoUpdate BIGM_LAST_UPDATE. v1.2-20161011
MasaoFujii [Tue, 11 Oct 2016 12:05:46 +0000 (21:05 +0900)]
Update BIGM_LAST_UPDATE.

Update to '2016.10.11'.

7 years agoUpdate release notes of pg_bigm 1.2 through today.
MasaoFujii [Tue, 11 Oct 2016 12:02:06 +0000 (21:02 +0900)]
Update release notes of pg_bigm 1.2 through today.

7 years agoDocument that pg_bigm 1.2 or later was confirmed to work with PostgreSQL9.6.
MasaoFujii [Tue, 11 Oct 2016 11:46:23 +0000 (20:46 +0900)]
Document that pg_bigm 1.2 or later was confirmed to work with PostgreSQL9.6.

7 years agoAdd the news about release of 1.1-20161011.
MasaoFujii [Tue, 11 Oct 2016 10:35:55 +0000 (19:35 +0900)]
Add the news about release of 1.1-20161011.

Backpatch to REL1_1_STABLE branch.

7 years agoVarious minor corrections of comments.
MasaoFujii [Tue, 11 Oct 2016 05:54:54 +0000 (14:54 +0900)]
Various minor corrections of comments.

This commit is inspired by the change of pg_trgm: 2d8a1e2.

7 years agoUpdate release note to mention performance improvement of similarity search.
MasaoFujii [Tue, 11 Oct 2016 04:01:59 +0000 (13:01 +0900)]
Update release note to mention performance improvement of similarity search.

7 years agoFix pg_bigm so that it can be registered properly in PostgreSQL 9.5 or before.
MasaoFujii [Mon, 5 Sep 2016 03:58:06 +0000 (12:58 +0900)]
Fix pg_bigm so that it can be registered properly in PostgreSQL 9.5 or before.

Commit 0b09e86 introduced the bug which caused "CREATE EXTENSION pg_bigm" to
fail in PostgreSQL 9.5 or before. The cause of this failure is that
pg_bigm--1.2.sql included the DO command which tried to mark the functions
with PARALLEL SAFE label which those versions cannot handle. To prevent
those versions from emitting syntax failure when they look at PARALLEL SAFE
label, this commit changes so that "ALTER FUNCTION ... PARALLEL SAFE" command
is executed via EXECUTE command.

7 years agoAdd README.mb for the mirror pg_bigm GIT repository at github.
MasaoFujii [Mon, 5 Sep 2016 03:17:59 +0000 (12:17 +0900)]
Add README.mb for the mirror pg_bigm GIT repository at github.

7 years agoAdd a .travis.yml file to tell Travis CI what to build and test.
MasaoFujii [Mon, 5 Sep 2016 02:58:34 +0000 (11:58 +0900)]
Add a .travis.yml file to tell Travis CI what to build and test.

7 years agoMake pg_bigm handle new version numbering policy for PostgreSQL.
MasaoFujii [Thu, 25 Aug 2016 06:29:30 +0000 (15:29 +0900)]
Make pg_bigm handle new version numbering policy for PostgreSQL.

7 years agoMake pg_bigm available for parallel queries that was added in PostgreSQL9.6.
MasaoFujii [Sat, 9 Jul 2016 16:57:38 +0000 (01:57 +0900)]
Make pg_bigm available for parallel queries that was added in PostgreSQL9.6.

Reviewed by Masahiko Sawada.

7 years agoRemove release note entries about pg_gin_pending_cleanup function.
MasaoFujii [Thu, 7 Jul 2016 07:23:44 +0000 (16:23 +0900)]
Remove release note entries about pg_gin_pending_cleanup function.

Since c91475cfac8541c22f92d0d801e53df847c55350 dropped
pg_gin_pending_cleanup function, its release note entries are not necessary.

7 years agoRevert "Add pg_gin_pending_cleanup function."
MasaoFujii [Thu, 30 Jun 2016 13:26:46 +0000 (22:26 +0900)]
Revert "Add pg_gin_pending_cleanup function."

This reverts commit 299f7f23c94f7674b780b1c3965201d3034bb6c9.

PostgreSQL 9.6 supports gin_clean_pending_list function which
provides the same functionality as pg_gin_pending_cleanup.
Since it's basically wasteful to maintain the same feature in
separate softwares, this commit drops pg_gin_pending_cleanup function.

8 years agoImprove similarity search performance
MasaoFujii [Tue, 26 Jan 2016 13:16:09 +0000 (22:16 +0900)]
Improve similarity search performance

This commit is inspired by the change of pg_trgm: 25bfa7e.

8 years agoAdd missing #include, to fix compilation failure
MasaoFujii [Mon, 25 Jan 2016 15:23:49 +0000 (00:23 +0900)]
Add missing #include, to fix compilation failure

This commit fixes the compilation error caused by the commit 65c5fcd
in PostgreSQL.

Back-patch to 1.1 where 9.6 will be supported.

8 years agoAdd the news about the release of RPM files.
Masahiko Sawada [Fri, 15 Jan 2016 10:55:15 +0000 (19:55 +0900)]
Add the news about the release of RPM files.

The RPMs of pg_bigm-1.1-20150910 for PostgreSQL9.1 to 9.5 are released.
Patched to REL1_1_STABLE branch.

8 years agoUpdate copyright for 2016.
MasaoFujii [Wed, 13 Jan 2016 13:45:29 +0000 (22:45 +0900)]
Update copyright for 2016.

Update all files in head and all back branches.

8 years agoDocument that pg_bigm 1.1 was confirmed to work with PostgreSQL9.5.
Masahiko Sawada [Wed, 13 Jan 2016 09:13:39 +0000 (18:13 +0900)]
Document that pg_bigm 1.1 was confirmed to work with PostgreSQL9.5.

8 years agoChange the URL link to the source archive file of version 20150910 in top page.
Masahiko Sawada [Thu, 10 Sep 2015 05:05:50 +0000 (14:05 +0900)]
Change the URL link to the source archive file of version 20150910 in top page.

8 years agoAdd fragment identifier to the link to release note, in index.html.
Masahiko Sawada [Wed, 9 Sep 2015 05:08:24 +0000 (14:08 +0900)]
Add fragment identifier to the link to release note, in index.html.

8 years agoChange the release note layout.
Masahiko Sawada [Wed, 9 Sep 2015 04:50:20 +0000 (13:50 +0900)]
Change the release note layout.

Move how to migration to top of the release note, and promote
its paragraph level.

8 years agoAdd the news about release of 1.1-20150910.
Masahiko Sawada [Tue, 8 Sep 2015 12:34:27 +0000 (21:34 +0900)]
Add the news about release of 1.1-20150910.

Backpatch to REL1_1_STABLE branch.

8 years agoAdd the news about the release of 1.0-20150910.
Masahiko Sawada [Tue, 8 Sep 2015 12:27:22 +0000 (21:27 +0900)]
Add the news about the release of 1.0-20150910.

Backpatch to all branches.

8 years agoUpdate BIGM_LAST_UPDATE.
Masahiko Sawada [Tue, 8 Sep 2015 12:07:30 +0000 (21:07 +0900)]
Update BIGM_LAST_UPDATE.

Update to '2015.09.10'.

8 years agoFix the link on top page.
Masahiko Sawada [Tue, 8 Sep 2015 11:57:26 +0000 (20:57 +0900)]
Fix the link on top page.

8 years agoImprove document about the setting to preload pg_bigm shared library to server.
MasaoFujii [Wed, 2 Sep 2015 02:17:05 +0000 (11:17 +0900)]
Improve document about the setting to preload pg_bigm shared library to server.

This commit adds the description explaining that, in PostgreSQL 9.4 or later,
session_preload_libraries parameter instead of shared_preload_libraries can
be used to specify the pg_bigm shared library to preload to the server, into
the document.

Backpatch to 1.1 where 9.4 is supported.

Reviewed by Amit Langote

8 years agoRevert "Remove shared_preload_libraries description from document."
MasaoFujii [Tue, 1 Sep 2015 10:10:55 +0000 (19:10 +0900)]
Revert "Remove shared_preload_libraries description from document."

This reverts commit e4510baed84d105caa65ae90962e9764b431c2de.

8 years agoFirst-draft release notes for 1.2.
MasaoFujii [Thu, 27 Aug 2015 19:16:36 +0000 (04:16 +0900)]
First-draft release notes for 1.2.

8 years agoImprove the comparison table of pg_trgm and pg_bigm in the document.
MasaoFujii [Wed, 26 Aug 2015 17:53:01 +0000 (02:53 +0900)]
Improve the comparison table of pg_trgm and pg_bigm in the document.

This patch adds the information about the difference of available
text search operators in pg_trgm and pg_bigm into the comparison
table.

Back-patch to all supported versions.

Reviewed by Masahiko Sawada.

8 years agoAdd pg_gin_pending_cleanup function.
MasaoFujii [Wed, 26 Aug 2015 16:43:34 +0000 (01:43 +0900)]
Add pg_gin_pending_cleanup function.

pg_gin_pending_cleanup is the function that cleans up the pending list
of the GIN index by moving tuples in it to the main GIN data structure
in bulk. Even without this function, we can clean up the pending list
by using VACUUM. However, since VACUUM needs to do not only
the pending list cleanup but also other various jobs, it usually takes
a long time and its performance impact is likely to be big.
So pg_gin_pending_cleanup function is useful because we can clean up
the list more quickly and avoid such big performance impact by using
the function.

Reviewed by Masahiko Sawada

8 years agoMinor improvement to English version of pg_gin_pending_stats documentation.
MasaoFujii [Tue, 25 Aug 2015 22:20:22 +0000 (07:20 +0900)]
Minor improvement to English version of pg_gin_pending_stats documentation.

8 years agoMake pg_gin_pending_stats() check whether given relation is a GIN index.
MasaoFujii [Fri, 14 Aug 2015 10:09:05 +0000 (19:09 +0900)]
Make pg_gin_pending_stats() check whether given relation is a GIN index.

Previously pg_gin_pending_stats() didn't do such a check, so it could
return an improper and irrelevant result when non-GIN index was specified.
This is a bug. This patch changes pg_gin_pending_stats() so that it exits
with an error when the given relation is not a GIN index.

Also this patch prevents pg_gin_pending_stats() from reading non-local
temporary relations.

Back-patch to all supported versions.

8 years agoUpdate documents for upcoming major version release of pg_bigm.
MasaoFujii [Thu, 6 Aug 2015 02:05:23 +0000 (11:05 +0900)]
Update documents for upcoming major version release of pg_bigm.

8 years agoRemove shared_preload_libraries description from document.
MasaoFujii [Thu, 6 Aug 2015 01:52:37 +0000 (10:52 +0900)]
Remove shared_preload_libraries description from document.

Previously the document explained that shared_preload_libraries must
be set to pg_bigm when using pg_bigm. This description is not true.
pg_bigm can work fine even if shared_preload_libraries is not set.
So this patch removes any descriptions about shared_preload_libraries
from the document.

Per discussion, we decided not to back-patch this to old versions.
Because this change might confuse the existing pg_bigm users who have
already configured shared_preload_libraries. Even if it's configured,
it's harmless, so there is no strong reason why such existing users
should drop that setting from their postgresql.conf soon.

8 years agoMake gin_bigm_ops use triConsistent function only with PostgreSQL 9.4 or later.
MasaoFujii [Wed, 5 Aug 2015 10:50:13 +0000 (19:50 +0900)]
Make gin_bigm_ops use triConsistent function only with PostgreSQL 9.4 or later.

Commit d0b296b introduced triConsistent function which is available
only in 9.4 or later, whatever the server version is. This meant that
pg_bigm 1.2 was not compatible with the server 9.3 or before. We did
this reluctantly because we could not find the way to define
triConsistent function and make gin_bigm_ops use it only when
the server version is 9.4 or later. However we finally found that
we can do that by using DO statement.

This changes the SQL which creates triConsistent function so that
it's executed via DO statement. This DO statement checks the server
version, and then creates the function and registers it to
gin_bigm_ops only when the version is 9.4 or later. Thanks to this
patch, pg_bigm 1.2 is compatible even with 9.3 or before.

Reviewed by Sawada Masahiko

8 years agoUpdate URLs that pointed to sourceforge.jp.
MasaoFujii [Tue, 28 Jul 2015 13:27:51 +0000 (22:27 +0900)]
Update URLs that pointed to sourceforge.jp.

The URL of site in which pg_bigm project is hosted was changed from
sourceforge.jp to osdn.jp. This patch applies this change to HTML files.

8 years agoSupport triConsistent function for better performance.
MasaoFujii [Fri, 24 Jul 2015 14:29:12 +0000 (23:29 +0900)]
Support triConsistent function for better performance.

The triConsistent function makes the full-text search using
pg_bigm much faster when the search keyword has a rare key.

This commit is inspired by the change of pg_trgm:
97f3014647a5bd570032abd2b809d3233003f13f

This commit bumps the pg_bigm version to 1.2.

Since triConsistent mechanism is available only in PostgreSQL 9.4
or later, this commit drops the support for 9.1, 9.2 and 9.3.
However, per discussion, we concluded to be able to live with
this situation because the current stable version of pg_bigm,
i.e., 1.1, keeps being maintained and supporting those old
PostgreSQL versions.

Reviewed by Sawada Masahiko.

9 years agoRemove unnecessary leading white space from .gitignore.
MasaoFujii [Tue, 7 Apr 2015 15:28:36 +0000 (00:28 +0900)]
Remove unnecessary leading white space from .gitignore.

9 years agoUse more proper formula to calculate the number of bigram entries.
MasaoFujii [Fri, 3 Apr 2015 04:51:23 +0000 (13:51 +0900)]
Use more proper formula to calculate the number of bigram entries.

Previously we used the formula that we just borrowed from pg_trgm code,
to calculate the number of bigram entries. Based on the result of that
calculation we allocated the memory to store the bigram entries.
That borrowed formula was not incorrect, but not precise. It caused us to
allocate too much memory than necessary, and which limited the maximum
allowed size of column indexed by pg_bigm to smaller number.

This commit makes the formula more proper, and increases the column
limitation size to about 102MB. Also this installs some checks that the input
string length is not so large as to cause overflow in the calculations of
palloc request sizes. The addition of these checks was inspired by
the pg_trgm related commit c3ccc9e.

This change is simple and useful to alleviate the column size limitation.
So back-patch to all supported versions.

Beena Emerson, reviewed by me.

9 years agoAdd missing <p> HTML tag to Japanese version of document.
MasaoFujii [Thu, 19 Mar 2015 03:29:11 +0000 (12:29 +0900)]
Add missing <p> HTML tag to Japanese version of document.

Back-patch to all supported versions.

9 years agoUpdate the document about the column size limitation.
MasaoFujii [Wed, 18 Mar 2015 20:47:52 +0000 (05:47 +0900)]
Update the document about the column size limitation.

The commit 5a63dd82c954dcead2616d04ac81d46947a8f6ea increased the maximum
allowed size of column indexed by pg_bigm to about 68MB.

Back-patch to all supported versions.

9 years agoUse INT8 to store the byte length of bi-gram string in "bigm" struct.
MasaoFujii [Wed, 18 Mar 2015 20:24:10 +0000 (05:24 +0900)]
Use INT8 to store the byte length of bi-gram string in "bigm" struct.

"bigm" struct has the field "bytelen" which indicates the byte length of
bi-gram string. Previously the data type of that field was INT. This commit
changes the data type to INT8 because the byte length of bi-gram string is
eight bytes at most and INT8 is enough large to indicate that length.
This change is useful to increase the maximum allowed size of the column
indexed by pg_bigm.

This change is cost-effective, i.e., simple but can alleviate the limitation of
the column size very much. So per discussion we decided to back-patch this to
all supported versions.

Beena Emerson, original idea from Sawada Masahiko.

9 years agoFix compiler warning with -Wmissing-variable-declarations.
MasaoFujii [Fri, 13 Mar 2015 21:52:26 +0000 (06:52 +0900)]
Fix compiler warning with -Wmissing-variable-declarations.

Back-patch to all supported versions.

9 years agoFix compilation failure on Apple LLVM 6.0.
MasaoFujii [Fri, 13 Mar 2015 21:41:27 +0000 (06:41 +0900)]
Fix compilation failure on Apple LLVM 6.0.

This commit adds missing "extern" declaration.

Back-patch to all supported versions.

9 years agoAdd the limitations section into document of pg_bigm 1.1.
Masahiko Sawada [Mon, 9 Mar 2015 10:56:18 +0000 (19:56 +0900)]
Add the limitations section into document of pg_bigm 1.1.

Also add the news into top page.

Backpatch to 1.1.

Beena Emerson

9 years agoAdd PGFILEDESC description to Makefiles.
Masahiko Sawada [Fri, 6 Feb 2015 05:21:28 +0000 (14:21 +0900)]
Add PGFILEDESC description to Makefiles.

Prominent binaries already had this metadata.

This commit is inspried by the change of pg_trgm:
0ffc201a51395ca71fe429ef86c872850a5850ee

Backpatch to all branches.

Beena Emerson

9 years agoAdjust blank lines around PG_MODULE_MAGIC defines, for consistency.
Masahiko Sawada [Fri, 6 Feb 2015 05:08:39 +0000 (14:08 +0900)]
Adjust blank lines around PG_MODULE_MAGIC defines, for consistency.

The architecture of pg_bigm is similar to pg_trgm.
This change is quite small but it need to be applied for
consistency of changing.

This commit is inspried by the change of pg_trgm:
6a605cd6bd9f689b35676623add0de9b90978bf1

Backpatch to all branches.

Beena Emerson

9 years agopgindent run.
Masahiko Sawada [Fri, 6 Feb 2015 04:41:34 +0000 (13:41 +0900)]
pgindent run.

This commit is inspried by the change of pg_trgm:
0a7832005792fa6dad171f9cadb8d587fe0dd800

Backpatch to all branches.

Beena Emerson

9 years agoAvoid the redundant declaration of the function prototypes.
MasaoFujii [Thu, 5 Feb 2015 10:24:14 +0000 (19:24 +0900)]
Avoid the redundant declaration of the function prototypes.

When the server version is 9.4 or later, PG_FUNCTION_INFO_V1 macro
always creates the prototype of its given function, so we avoid
declaring the prototypes of all the global functions for pg_bigm.
IOW, the function prototypes are there only when the server version
is 9.3 or before.

This commit is inspired by the change of pg_trgm:
e7128e8dbb305059c30ec085461297e619bcbff4

Back-patch to 1.1 where 9.4 is supported.

Beena Emerson

9 years agoFix URL link in index_en.html.
Masahiko Sawada [Thu, 5 Feb 2015 04:23:39 +0000 (13:23 +0900)]
Fix URL link in index_en.html.

Patched to REL1_1_STABLE branch.

9 years agoAdd the news about the release of RPM files.
Masahiko Sawada [Thu, 5 Feb 2015 03:24:09 +0000 (12:24 +0900)]
Add the news about the release of RPM files.

The RPM of pg_bigm-1.1-20131122 for PostgreSQL9.4 is released.
Patched to REL1_1_STABLE branch.

9 years agoAdd .gitignore file.
Masahiko Sawada [Thu, 5 Feb 2015 03:17:04 +0000 (12:17 +0900)]
Add .gitignore file.

Add file to head and call back branches.