-/*-------------------------------------------------------------------------
- *
- * schemapg.h
- * Schema_pg_xxx macros for use by relcache.c
- *
- * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- * NOTES
- * ******************************
- * *** DO NOT EDIT THIS FILE! ***
- * ******************************
- *
- * It has been GENERATED by src/backend/catalog/genbki.pl
- *
- *-------------------------------------------------------------------------
- */
#ifndef SCHEMAPG_H
#define SCHEMAPG_H
EOM
# Now generate system_fk_info.h
-# Opening boilerplate for system_fk_info.h
+print_boilerplate($fk_info, "system_fk_info.h",
+ "Data about the foreign-key relationships in the system catalogs");
print $fk_info <
-/*-------------------------------------------------------------------------
- *
- * system_fk_info.h
- * Data about the foreign-key relationships in the system catalogs
- *
- * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
- * Portions Copyright (c) 1994, Regents of the University of California
- *
- * NOTES
- * ******************************
- * *** DO NOT EDIT THIS FILE! ***
- * ******************************
- *
- * It has been GENERATED by src/backend/catalog/genbki.pl
- *
- *-------------------------------------------------------------------------
- */
#ifndef SYSTEM_FK_INFO_H
#define SYSTEM_FK_INFO_H
return $result;
}
+sub print_boilerplate
+{
+ my ($fh, $fname, $descr) = @_;
+ printf $fh <
+/*-------------------------------------------------------------------------
+ *
+ * %s
+ * %s
+ *
+ * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group
+ * Portions Copyright (c) 1994, Regents of the University of California
+ *
+ * NOTES
+ * ******************************
+ * *** DO NOT EDIT THIS FILE! ***
+ * ******************************
+ *
+ * It has been GENERATED by src/backend/catalog/genbki.pl
+ *
+ *-------------------------------------------------------------------------
+ */
+EOM
+}
+
sub usage
{
die <