postgresql/src/backend/utils/adt
Andres Freund 8aaa04b32d Track shared buffer hits in pg_stat_io
Among other things, this should make it easier to calculate a useful cache hit
ratio by excluding buffer reads via buffer access strategies. As buffer access
strategies reuse buffers (and thus evict the prior buffer contents), it is
normal to see reads on repeated scans of the same data.

Author: Melanie Plageman <melanieplageman@gmail.com>
Reviewed-by: Bertrand Drouvot <bertranddrouvot.pg@gmail.com>
Reviewed-by: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAAKRu_beMa9Hzih40%3DXPYqhDVz6tsgUGTrhZXRo%3Dunp%2Bszb%3DUA%40mail.gmail.com
2023-03-30 19:24:21 -07:00
..
.gitignore Build all Flex files standalone 2022-09-04 12:09:01 +07:00
acl.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
amutils.c Add SysCacheGetAttrNotNull for guaranteed not-null attrs 2023-03-25 22:49:33 +01:00
array_expanded.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
array_typanalyze.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
array_userfuncs.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
arrayfuncs.c Fix oversights in array manipulation. 2023-03-26 13:41:06 -04:00
arraysubs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
arrayutils.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ascii.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
bool.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
cash.c Convert a few more datatype input functions to report errors softly. 2022-12-14 18:03:11 -05:00
char.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
cryptohashfuncs.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
date.c Refactor datetime functions' timezone lookup code to reduce duplication. 2023-03-17 17:47:19 -04:00
datetime.c Refactor datetime functions' timezone lookup code to reduce duplication. 2023-03-17 17:47:19 -04:00
datum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
dbsize.c Add support for unit "B" to pg_size_bytes() 2023-03-07 20:31:16 +01:00
domains.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
encode.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
enum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
expandeddatum.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
expandedrecord.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
float.c Avoid overflow in width_bucket_float8(). 2023-03-30 11:27:36 -04:00
format_type.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
formatting.c Fix corner case bug in numeric to_char() some more. 2023-03-14 19:17:31 -04:00
genfile.c Use "data directory" not "current directory" in error messages. 2023-03-16 12:04:08 -04:00
geo_ops.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
geo_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
geo_spgist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
hbafuncs.c Store IdentLine->pg_user as an AuthToken 2023-01-16 13:58:07 +09:00
inet_cidr_ntop.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
inet_net_pton.c Avoid conflicts with library versions of inet_net_ntop() and friends. 2019-08-18 19:27:23 -04:00
int.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
int8.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
json.c SQL/JSON: add standard JSON constructor functions 2023-03-29 12:11:36 +02:00
jsonb.c SQL/JSON: add standard JSON constructor functions 2023-03-29 12:11:36 +02:00
jsonb_gin.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonb_op.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonb_util.c SQL/JSON: add standard JSON constructor functions 2023-03-29 12:11:36 +02:00
jsonbsubs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonfuncs.c Fix JSON error reporting for many cases of erroneous string values. 2023-03-13 15:19:00 -04:00
jsonpath.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonpath_exec.c Fix jsonpath existense checking of missing variables 2023-01-12 18:16:34 +03:00
jsonpath_gram.y Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonpath_internal.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
jsonpath_scan.l SQL JSON path enhanced numeric literals 2023-03-05 15:19:58 +01:00
levenshtein.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
like.c Refactor to introduce pg_locale_deterministic(). 2023-02-23 11:17:41 -08:00
like_match.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
like_support.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
lockfuncs.c Fix the display of lock information for specktoken. 2023-01-10 08:53:47 +05:30
mac.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
mac8.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile Build all Flex files standalone 2022-09-04 12:09:01 +07:00
mcxtfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
misc.c Rework pg_input_error_message(), now renamed pg_input_error_info() 2023-02-28 08:04:13 +09:00
multirangetypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
multirangetypes_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
name.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
network.c Work around spurious compiler warning in inet operators 2023-03-16 14:48:45 -07:00
network_gist.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
network_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
network_spgist.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
numeric.c Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
numutils.c Allow underscores in integer and numeric constants. 2023-02-04 09:48:51 +00:00
oid.c Remove arbitrary FUNC_MAX_ARGS limit in int2vectorin and oidvectorin. 2023-01-15 17:32:09 -05:00
oracle_compat.c Avoid fetching one past the end of translate()'s "to" parameter. 2023-03-01 11:30:31 -05:00
orderedsetaggs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
partitionfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_locale.c Validate ICU locales. 2023-03-28 16:34:29 -07:00
pg_lsn.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_upgrade_support.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstatfuncs.c Track shared buffer hits in pg_stat_io 2023-03-30 19:24:21 -07:00
pseudotypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
quote.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
rangetypes.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
rangetypes_gist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_selfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_spgist.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
rangetypes_typanalyze.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
regexp.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
regproc.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ri_triggers.c Remove useless casts to (void *) in hash_search() calls 2023-02-06 09:41:01 +01:00
rowtypes.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
ruleutils.c Fix inconsistencies and style issues in new SQL/JSON code 2023-03-30 21:06:31 +02:00
selfuncs.c Make Vars be outer-join-aware. 2023-01-30 13:16:20 -05:00
tid.c Consolidate ItemPointer to Datum conversion functions 2023-02-13 09:57:15 +01:00
timestamp.c Add functions to do timestamptz arithmetic in a non-default timezone. 2023-03-18 14:12:16 -04:00
trigfuncs.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tsginidx.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
tsgistidx.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_cleanup.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_gist.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsquery_op.c New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
tsquery_rewrite.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
tsquery_util.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsrank.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsvector.c Remove useless casts to (void *) in arguments of some system functions 2023-02-07 06:57:59 +01:00
tsvector_op.c Fix ts_headline() to handle ORs and phrase queries more honestly. 2023-01-19 16:21:44 -05:00
tsvector_parser.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
uuid.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
varbit.c Change argument type of pq_sendbytes from char * to void * 2023-02-14 13:32:19 +01:00
varchar.c Remove unnecessary #ifdef USE_ICU and branch. 2023-02-23 11:20:00 -08:00
varlena.c Fix abbreviated keys bug introduced in d87d548cd0. 2023-03-25 11:08:32 -07:00
version.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
windowfuncs.c Teach planner about more monotonic window functions 2023-01-27 16:08:41 +13:00
xid.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
xid8funcs.c Fix typo in header comment 2023-03-24 09:03:31 +01:00
xml.c Support [NO] INDENT option in XMLSERIALIZE(). 2023-03-15 16:59:09 -04:00