Re: pg_dump not dumping default_text_search_config WAI?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Philip Warner <pjw(at)rhyme(dot)com(dot)au>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: pg_dump not dumping default_text_search_config WAI?
Date: 2025-11-08 17:06:50
Message-ID: 1469920.1762621610@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Philip Warner <pjw(at)rhyme(dot)com(dot)au> writes:
> I just got bitten by dumping and restoring a database to a new cluster,
> and the default_text_search_config was not copied for the database.

> A check of the dump file shows no 'ALTER DATABASE' command.

IIRC you'd need to use --create to prod pg_dump to produce
a CREATE DATABASE command as well as any database-level
ALTER commands.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Laurenz Albe 2025-11-08 17:30:44 Re: ago(interval) → timestamptz
Previous Message Tom Lane 2025-11-08 17:01:26 Re: Use bsearch() instead of a manual binary search in syscache.c