aboutsummaryrefslogtreecommitdiff
path: root/src/include/utils/ascii.h
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2011-10-21 16:36:04 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2011-10-21 16:36:04 -0400
commitf9c92a5a3ead738c7de0dffa203a92b4d2fec413 (patch)
tree75038afe9cf2de5eecea6f24079e3f011d576e97 /src/include/utils/ascii.h
parent5ac5980744149f062ec599015ffe7a7689dd117b (diff)
downloadpostgresql-f9c92a5a3ead738c7de0dffa203a92b4d2fec413.tar.gz
postgresql-f9c92a5a3ead738c7de0dffa203a92b4d2fec413.zip
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.
Diffstat (limited to 'src/include/utils/ascii.h')
-rw-r--r--src/include/utils/ascii.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/utils/ascii.h b/src/include/utils/ascii.h
index adeddb5626f..b57713b3eb1 100644
--- a/src/include/utils/ascii.h
+++ b/src/include/utils/ascii.h
@@ -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_ */