Обсуждение: pgsql: Move the "instr_time" typedef and associated macros into a new

Поиск
Список
Период
Сортировка

pgsql: Move the "instr_time" typedef and associated macros into a new

От
tgl@postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Move the "instr_time" typedef and associated macros into a new header
file portability/instr_time.h, and add a couple more macros to eliminate
some abstraction leakage we formerly had.  Also update psql to use this
header instead of its own copy of nearly the same code.

This commit in itself is just code cleanup and shouldn't change anything.
It lays some groundwork for the upcoming function-stats patch, though.

Modified Files:
--------------
    pgsql/src/backend/commands:
        explain.c (r1.174 -> r1.175)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/commands/explain.c?r1=1.174&r2=1.175)
    pgsql/src/backend/executor:
        instrument.c (r1.20 -> r1.21)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/executor/instrument.c?r1=1.20&r2=1.21)
    pgsql/src/bin/psql:
        command.c (r1.188 -> r1.189)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/command.c?r1=1.188&r2=1.189)
        common.c (r1.138 -> r1.139)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/common.c?r1=1.138&r2=1.139)
        common.h (r1.56 -> r1.57)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/bin/psql/common.h?r1=1.56&r2=1.57)
    pgsql/src/include:
        Makefile (r1.24 -> r1.25)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/Makefile?r1=1.24&r2=1.25)
    pgsql/src/include/executor:
        instrument.h (r1.18 -> r1.19)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/executor/instrument.h?r1=1.18&r2=1.19)

Added Files:
-----------
    pgsql/src/include/portability:
        instr_time.h (r1.1)

(http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/include/portability/instr_time.h?rev=1.1&content-type=text/x-cvsweb-markup)