postgresql/src/backend/access
Peter Eisentraut 1784f278a6 Replace remaining StrNCpy() by strlcpy()
They are equivalent, except that StrNCpy() zero-fills the entire
destination buffer instead of providing just one trailing zero.  For
all but a tiny number of callers, that's just overhead rather than
being desirable.

Remove StrNCpy() as it is now unused.

In some cases, namestrcpy() is the more appropriate function to use.
While we're here, simplify the API of namestrcpy(): Remove the return
value, don't check for NULL input.  Nothing was using that anyway.
Also, remove a few unused name-related functions.

Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/44f5e198-36f6-6cdb-7fa9-60e34784daae%402ndquadrant.com
2020-08-10 23:20:37 +02:00
..
brin Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
common Move syncscan.c to src/backend/access/common. 2020-07-29 16:59:33 +12:00
gin Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
gist Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
hash Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
heap Implement streaming mode in ReorderBuffer. 2020-08-08 07:47:06 +05:30
index Implement streaming mode in ReorderBuffer. 2020-08-08 07:47:06 +05:30
nbtree Correct nbtree page split lock coupling comment. 2020-08-09 12:01:15 -07:00
rmgrdesc WAL Log invalidations at command end with wal_level=logical. 2020-07-23 08:34:48 +05:30
spgist Invent "amadjustmembers" AM method for validating opclass members. 2020-08-01 17:12:47 -04:00
table Implement streaming mode in ReorderBuffer. 2020-08-08 07:47:06 +05:30
tablesample Move src/backend/utils/hash/hashfn.c to src/common 2020-02-27 09:25:41 +05:30
transam Replace remaining StrNCpy() by strlcpy() 2020-08-10 23:20:37 +02:00
Makefile Introduce access/{table.h, relation.h}, for generic functions from heapam.h. 2019-01-21 10:51:36 -08:00