From 2cdf359fc4471c488fbb0dbd31678d78c3c1043b Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 9 Apr 2018 14:58:39 -0400 Subject: Make reformat_dat_file.pl preserve all blank lines. In its original form, reformat_dat_file.pl smashed consecutive blank lines to a single blank line, which was helpful for mopping up excess whitespace during the bootstrap data format conversion. But going forward, there seems little reason to do that; if developers want to put in multiple blank lines, let 'em. This makes it conform to the documentation I (tgl) wrote, too. In passing, clean up some sloppy markup choices in bki.sgml. John Naylor Discussion: https://postgr.es/m/28827.1523039259@sss.pgh.pa.us --- doc/src/sgml/bki.sgml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/bki.sgml b/doc/src/sgml/bki.sgml index c4ffc61b84b..f7a323ef345 100644 --- a/doc/src/sgml/bki.sgml +++ b/doc/src/sgml/bki.sgml @@ -129,19 +129,19 @@ - Frontend code should not include any pg_xxx.h + Frontend code should not include any pg_xxx.h catalog header file, as these files may contain C code that won't compile outside the backend. (Typically, that happens because these files also contain declarations for functions in src/backend/catalog/ files.) Instead, frontend code may include the corresponding - generated pg_xxx_d.h header, which will contain + generated pg_xxx_d.h header, which will contain OID #defines and any other data that might be of use on the client side. If you want macros or other code in a catalog header to be visible to frontend code, write #ifdef EXPOSE_TO_CLIENT_CODE ... #endif around that section to instruct genbki.pl to copy that section - to the pg_xxx_d.h header. + to the pg_xxx_d.h header. @@ -419,11 +419,9 @@ Use of symbolic references is enabled in a particular catalog column by attaching BKI_LOOKUP(lookuprule) to the column's definition, where lookuprule - is pg_am, pg_proc, - pg_operator, - pg_opclass, - pg_opfamily, - or pg_type. + is pg_am, pg_proc, + pg_operator, pg_opclass, + pg_opfamily, or pg_type. BKI_LOOKUP can be attached to columns of type Oid, regproc, oidvector, or Oid[]; in the latter two cases it implies performing a -- cgit v1.2.3