pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pgfouine - pgfouine: added year into the log files to make tests more
2+ messages / 2 participants
[nested] [flat]

* pgfouine - pgfouine: added year into the log files to make tests more
@ 2009-04-18 19:59  User Gsmet <gsmet@pgfoundry.org>
  0 siblings, 0 replies; 2+ messages in thread

From: gsmet@pgfoundry.org @ 2009-04-18 19:59 UTC (permalink / raw)
  To: pgsql-committers

Log Message:
-----------
added year into the log files to make tests more reliable

Modified Files:
--------------
    pgfouine/tests/logs/TestLogFiles:
        test_double_duration.log (r1.1 -> r1.2)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgfouine/pgfouine/tests/logs/TestLogFiles/test_double_du...)




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* pgsql: Generalize relation analyze in table AM interface
@ 2024-03-30 20:54  Alexander Korotkov <akorotkov@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Alexander Korotkov @ 2024-03-30 20:54 UTC (permalink / raw)
  To: pgsql-committers@lists.postgresql.org

Generalize relation analyze in table AM interface

Currently, there is just one algorithm for sampling tuples from a table written
in acquire_sample_rows().  Custom table AM can just redefine the way to get the
next block/tuple by implementing scan_analyze_next_block() and
scan_analyze_next_tuple() API functions.

This approach doesn't seem general enough.  For instance, it's unclear how to
sample this way index-organized tables.  This commit allows table AM to
encapsulate the whole sampling algorithm (currently implemented in
acquire_sample_rows()) into the relation_analyze() API function.

Discussion: https://postgr.es/m/CAPpHfdurb9ycV8udYqM%3Do0sPS66PJ4RCBM1g-bBpvzUfogY0EA%40mail.gmail.com
Reviewed-by: Pavel Borisov, Matthias van de Meent

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/27bc1772fc814946918a5ac8ccb9b5c5ad0380aa

Modified Files
--------------
src/backend/access/heap/heapam_handler.c |  29 ++++++---
src/backend/access/table/tableamapi.c    |   2 -
src/backend/commands/analyze.c           |  54 ++++++++--------
src/include/access/heapam.h              |   9 +++
src/include/access/tableam.h             | 106 +++++++------------------------
src/include/commands/vacuum.h            |  19 ++++++
src/include/foreign/fdwapi.h             |   6 +-
7 files changed, 100 insertions(+), 125 deletions(-)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2024-03-30 20:54 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-04-18 19:59 pgfouine - pgfouine: added year into the log files to make tests more User Gsmet <gsmet@pgfoundry.org>
2024-03-30 20:54 pgsql: Generalize relation analyze in table AM interface Alexander Korotkov <akorotkov@postgresql.org>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox