Re: pg_dump: optimize dumpFunc()

From: Nathan Bossart <nathandbossart(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump: optimize dumpFunc()
Date: 2024-08-02 20:00:45
Message-ID: Zq067RVF_Zpicpc_@nathan
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, Aug 02, 2024 at 01:33:45AM -0400, Tom Lane wrote:
> I'm a bit concerned about this on two grounds:
>
> 1. Is it a win for DBs with not so many functions?
>
> 2. On the other end of the scale, if you've got a *boatload* of
> functions, what does it do to pg_dump's memory requirements?
> I'm recalling my days at Salesforce, where they had quite a few
> thousand pl/pgsql functions totalling very many megabytes of source
> text. (Don't recall precise numbers offhand, and they'd be obsolete
> by now even if I did.)
>
> I'm not sure that the results you're showing justify taking any
> risk here.

Hm. I think this is sufficient reason to withdraw this patch on the spot.

--
nathan

In response to

Browse pgsql-hackers by date

  From Date Subject
Previous Message Noah Misch 2024-08-02 19:52:28 Re: meson "experimental"?