mirror of
https://github.com/postgres/postgres.git
synced 2025-12-21 05:21:08 +03:00
Code review for pgstat_get_crashed_backend_activity patch.
Avoid possibly dumping core when pgstat_track_activity_query_size has a less-than-default value; avoid uselessly searching for the query string of a successfully-exited backend; don't bother putting out an ERRDETAIL if we don't have a query to show; some other minor stylistic improvements.
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
extern Datum to_ascii_encname(PG_FUNCTION_ARGS);
|
||||
extern Datum to_ascii_enc(PG_FUNCTION_ARGS);
|
||||
extern Datum to_ascii_default(PG_FUNCTION_ARGS);
|
||||
extern void ascii_safe_strncpy(char *dest, const char *src, int len);
|
||||
|
||||
extern void ascii_safe_strlcpy(char *dest, const char *src, size_t destsiz);
|
||||
|
||||
#endif /* _ASCII_H_ */
|
||||
|
||||
Reference in New Issue
Block a user