Re: pgbench with partitioned tables - Mailing list pgsql-hackers

From Álvaro Herrera
Subject Re: pgbench with partitioned tables
Date
Msg-id 202502081032.3q4n6a3uihw3@alvherre.pgsql
Whole thread Raw
In response to Re: pgbench with partitioned tables  (Melanie Plageman <melanieplageman@gmail.com>)
List pgsql-hackers
On 2025-Feb-07, Melanie Plageman wrote:

> Okay, I've stared at this a bit, and it seems basically fine the way
> it is (I might add a bit more whitespace, clean up the commit message,
> etc). So I'm interested in committing it. I will admit that having
> never committed anything to pgbench, I'm a bit nervous. So, give me a
> couple days to work up the nerve.

Sounds good.  I only wanted to say that I would use PQexecParams()
instead of PQexec() in the new function, avoiding the psprintf and
pfree, and also that initializing relkind to RELKIND_RELATION is strange
and probably unnecessary.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Cuando mañana llegue pelearemos segun lo que mañana exija" (Mowgli)



pgsql-hackers by date:

Previous
From: Japin Li
Date:
Subject: Re: proposal - plpgsql - support standard syntax for named arguments for cursors
Next
From: Tomas Vondra
Date:
Subject: Re: Showing applied extended statistics in explain Part 2