提交 ca66868e 编写于 作者: C Chris Hajas 提交者: GitHub

Update foreign key json file name to 5.0 (#1605)

* Update foreign key json file name to 5.0

* This was breaking gpcheckcat which assumes the json file corresponds
* to the current greenplum version.
* Update docs for generating json file.

Authors: Chris Hajas and Jamie McAtamney
上级 8e17b053
此差异已折叠。
此差异已折叠。
此差异已折叠。
......@@ -85,8 +85,8 @@ postgres.shdescription: postgres.bki ;
postgres_bki_srcs: process_col_defaults.pl $(POSTGRES_BKI_SRCS)
cat $(POSTGRES_BKI_SRCS) | $(PERL) process_col_defaults.pl > postgres_bki_srcs
4.3.json: process_foreign_keys.pl $(POSTGRES_BKI_SRCS) $(top_srcdir)/src/include/catalog/catversion.h
cat $(POSTGRES_BKI_SRCS) $(top_srcdir)/src/include/catalog/catversion.h | $(PERL) process_foreign_keys.pl > 4.3.json
5.0.json: process_foreign_keys.pl $(POSTGRES_BKI_SRCS) $(top_srcdir)/src/include/catalog/catversion.h
cat $(POSTGRES_BKI_SRCS) $(top_srcdir)/src/include/catalog/catversion.h | $(PERL) process_foreign_keys.pl > 5.0.json
postgres.bki: genbki.sh postgres_bki_srcs $(top_srcdir)/src/include/pg_config_manual.h
AWK='$(AWK)' $(SHELL) $< $(pg_includes) --set-version=$(VERSION) -o postgres postgres_bki_srcs
......
......@@ -35,9 +35,9 @@ the following steps are needed.
gpMgmt/bin/gppylib/data/X.X.json. Otherwise, catversion test would fail.
$ cd src/backend/catalog
$ make 4.3.json
$ make 5.0.json
After 4.3.json is generated, move it to gpMgmt/bin/gppylib/data/
After 5.0.json is generated, move it to gpMgmt/bin/gppylib/data/
5. Run make distclean, make, gpinitsystem and you should be able to see your
newly added function in pg_proc.
......
......@@ -72,8 +72,8 @@ gpMgmt/bin/gppylib/data/<version>.json file. There is a script for that
in src/backend/catalog:
cd src/backend/catalog
make 4.3.json
cp 4.3.json ../../../gpMgmt/bin/gppylib/data
make 5.0.json
cp 5.0.json ../../../gpMgmt/bin/gppylib/data
If you add a column to an existing PostgreSQL catalog, you can use
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册