From 46651ce6fe013220ed397add242004d764fc0153 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 4 May 2024 14:15:05 +0200 Subject: Adding upstream version 14.5. Signed-off-by: Daniel Baumann --- src/backend/utils/Gen_dummy_probes.sed | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 src/backend/utils/Gen_dummy_probes.sed (limited to 'src/backend/utils/Gen_dummy_probes.sed') diff --git a/src/backend/utils/Gen_dummy_probes.sed b/src/backend/utils/Gen_dummy_probes.sed new file mode 100644 index 0000000..6e29d86 --- /dev/null +++ b/src/backend/utils/Gen_dummy_probes.sed @@ -0,0 +1,24 @@ +#------------------------------------------------------------------------- +# sed script to create dummy probes.h file when dtrace is not available +# +# Copyright (c) 2008-2021, PostgreSQL Global Development Group +# +# src/backend/utils/Gen_dummy_probes.sed +#------------------------------------------------------------------------- + +/^[ ]*probe /!d +s/^[ ]*probe \([^(]*\)\(.*\);/\1\2/ +s/__/_/g +y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/ +s/^/#define TRACE_POSTGRESQL_/ +s/([^,)]\{1,\})/(INT1)/ +s/([^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2)/ +s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3)/ +s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4)/ +s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5)/ +s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6)/ +s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7)/ +s/([^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\}, [^,)]\{1,\})/(INT1, INT2, INT3, INT4, INT5, INT6, INT7, INT8)/ +s/$/ do {} while (0)/ +P +s/(.*$/_ENABLED() (0)/ -- cgit v1.2.3