2022-07-18 21:22:50 +02:00
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
# sed script to postprocess dtrace output
|
|
|
|
#
|
2023-01-02 21:00:37 +01:00
|
|
|
# Copyright (c) 2008-2023, PostgreSQL Global Development Group
|
2022-07-18 21:22:50 +02:00
|
|
|
#
|
|
|
|
# src/backend/utils/postprocess_dtrace.sed
|
|
|
|
#-------------------------------------------------------------------------
|
|
|
|
|
|
|
|
# We editorialize on dtrace's output to the extent of changing the macro
|
|
|
|
# names (from POSTGRESQL_foo to TRACE_POSTGRESQL_foo) and changing any
|
|
|
|
# "char *" arguments to "const char *".
|
|
|
|
|
|
|
|
s/POSTGRESQL_/TRACE_POSTGRESQL_/g
|
|
|
|
s/( *char \*/(const char */g
|
|
|
|
s/, *char \*/, const char */g
|