Re: new heapcheck contrib module

From: Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>
To: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
Cc: Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Peter Geoghegan <pg(at)bowt(dot)ie>, "Andrey M(dot) Borodin" <x4mmm(at)yandex-team(dot)ru>, Stephen Frost <sfrost(at)snowman(dot)net>, Michael Paquier <michael(at)paquier(dot)xyz>, Amul Sul <sulamul(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Andres Freund <andres(at)anarazel(dot)de>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: new heapcheck contrib module
Date: 2021-01-11 18:16:07
Message-ID: A4C2DFB8-436F-4802-BE8D-7A30290D52FA@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> On Jan 10, 2021, at 12:41 PM, Thomas Munro <thomas(dot)munro(at)gmail(dot)com> wrote:
>
> On Fri, Jan 8, 2021 at 6:33 AM Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com> wrote:
>> The attached patches, v31, are mostly the same, but with "getopt_long.h" included from pg_amcheck.c per Thomas's review, and a .gitignore file added in contrib/pg_amcheck/
>
> I couple more little things from Windows CI:
>
> C:\projects\postgresql\src\include\fe_utils/option_utils.h(19):
> fatal error C1083: Cannot open include file: 'libpq-fe.h': No such
> file or directory [C:\projects\postgresql\pg_amcheck.vcxproj]
>
> Does contrib/amcheck/Makefile need to say "SHLIB_PREREQS =
> submake-libpq" like other contrib modules that use libpq?

Added in v32.

> pg_backup_utils.obj : error LNK2001: unresolved external symbol
> exit_nicely [C:\projects\postgresql\pg_dump.vcxproj]
>
> I think this is probably because additions to src/fe_utils/Makefile's
> OBJS list need to be manually replicated in
> src/tools/msvc/Mkvcbuild.pm's @pgfeutilsfiles list. (If I'm right
> about that, perhaps it needs a comment to remind us Unix hackers of
> that, or perhaps it should be automated...)

Added in v32, along with adding pg_amcheck to @contrib_uselibpq, @contrib_uselibpgport, and @contrib_uselibpgcommon

There are also a few additions in v32 to typedefs.list, and some whitespace changes due to running pgindent.

Attachment Content-Type Size
v32-0001-Moving-exit_nicely-and-fatal-into-fe_utils.patch application/octet-stream 8.7 KB
v32-0002-Refactoring-ExecuteSqlQuery-and-related-function.patch application/octet-stream 46.7 KB
v32-0003-Creating-query_utils-frontend-utility.patch application/octet-stream 10.4 KB
v32-0004-Adding-CurrentQueryHandler-logic.patch application/octet-stream 5.2 KB
v32-0005-Refactoring-pg_dumpall-functions.patch application/octet-stream 2.1 KB
v32-0006-Refactoring-expand_schema_name_patterns-and-frie.patch application/octet-stream 6.6 KB
v32-0007-Moving-pg_dump-functions-to-new-file-option_util.patch application/octet-stream 17.0 KB
v32-0008-Normalizing-option_utils-interface.patch application/octet-stream 14.5 KB
v32-0009-Adding-contrib-module-pg_amcheck.patch application/octet-stream 83.8 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tomas Vondra 2021-01-11 18:16:45 Re: [POC] Fast COPY FROM command for the table with foreign partitions
Previous Message Bruce Momjian 2021-01-11 18:04:23 Re: Key management with tests