From 84549ebd4c4d1941006056cfb2455a4983fb15a2 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Sat, 28 Apr 2018 16:09:03 -0400 Subject: Tweak reformat_dat_file.pl to make it more easily hand-invokable. Use the same code we already applied in duplicate_oids and unused_oids to let this script find Catalog.pm without help. This removes the need to supply a -I switch in most cases. Also, mark the script executable, again to follow the precedent of duplicate_oids and unused_oids. Now you can just do "./reformat_dat_file.pl pg_proc.dat" if you want to reformat only one or a few .dat files rather than all. It'd be possible to remove the -I switches in the Makefile's convenience targets, but I chose to leave them: they don't hurt anything, and it's possible that in weird VPATH situations they might be of value. --- doc/src/sgml/bki.sgml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/bki.sgml b/doc/src/sgml/bki.sgml index e7acd652e76..5b557ffb7bf 100644 --- a/doc/src/sgml/bki.sgml +++ b/doc/src/sgml/bki.sgml @@ -594,7 +594,7 @@ Run the new script: $ cd src/include/catalog -$ perl -I ../../backend/catalog rewrite_dat_with_prokind.pl pg_proc.dat +$ perl rewrite_dat_with_prokind.pl pg_proc.dat At this point pg_proc.dat has all three columns, prokind, -- cgit v1.2.3