From: | Surya Prakash <suryasp1010(at)gmail(dot)com> |
---|---|
To: | Julien Rouhaud <rjuju123(at)gmail(dot)com> |
Cc: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #17394: pg_dump: query returned 0 rows instead of one: |
Date: | 2022-02-05 21:29:14 |
Message-ID: | CAEW_3Bgb1=y8hxLBVnHbzKCVX3XRZTf+1Ux=1dsrzN41-f4LXQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
Hi Julien,
Thanks a lot, that worked for me.
Thanks,
Surya
On Fri, 4 Feb 2022 at 18:19, Julien Rouhaud <rjuju123(at)gmail(dot)com> wrote:
> Hi,
>
> On Thu, Feb 03, 2022 at 09:40:07PM +0000, PG Bug reporting form wrote:
> >
> > pg_dump: saving database definition
> > pg_dump: query returned 0 rows instead of one:
> > SELECT proretset, prosrc, probin,
> pg_catalog.pg_get_function_arguments(oid)
> > AS funcargs,pg_catalog.pg_get_function_identity_arguments(oid) AS
> funciargs,
> > pg_catalog.pg_get_function_result(oid) AS funcresult,
> > array_to_string(protrftypes, ' ') AS protrftypes, prokind, provolatile,
> > proisstrict, prosecdef, proleakproof, proconfig, procost, prorows,
> > proparallel, (SELECT lanname FROM pg_catalog.pg_language WHERE oid =
> > prolang) AS lanname FROM pg_catalog.pg_proc WHERE oid =
> > '1046460'::pg_catalog.oid
> >
> >
> > I am getting this above error while taking backup of a database.
>
> Is the problem reproducible?
>
> Can you try to execute the query on the target database, before and after
> executing those queries:
>
> SET enable_indexscan = off;
> SET enable_indexonlyscan = off;
> SET enable_bitmapscan = off;
>
> If you the query returns a result after the 3 SET enable_* queries, it
> means
> that you have at least one corrupted index. You could fix the situation
> (at
> least for this specific problem) with a
> REINDEX TABLE pg_proc;
>
> But you will have to investigate how you get a corruption in the first
> place
> (faulty hardware, inadequate configuration...), and maybe do more thorough
> checks on your database(s). See for instance
> https://www.postgresql.org/docs/11/amcheck.html.
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2022-02-05 22:07:25 | Re: BUG #17391: While using --with-ssl=openssl and PG_TEST_EXTRA='ssl' options, SSL tests fail on OpenBSD 7.0 |
Previous Message | Surya Prakash | 2022-02-05 21:28:24 | Re: BUG #17394: pg_dump: query returned 0 rows instead of one: |