Replies: 3 comments 1 reply
-
What is the result of the following query when connected to the database that you're running maintenance from?
|
Beta Was this translation helpful? Give feedback.
-
SELECT c.relname, n.nspname FROM pg_class c JOIN pg_namespace n ON c.relnamespace = n.oid WHERE relname = 'table1_partioned'; returns no data Only returns data by the renamed name: |
Beta Was this translation helpful? Give feedback.
-
Look for an entry in the If you've renamed your partition table's parent table name, you'll have to update that entry in the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Running select partman.run_maintenance();
We get:
ERROR: Given parent table not found in system catalogs: public.table1_partitioned
CONTEXT: PL/pgSQL function show_partitions(text,text,boolean) line 51 at RAISE
SQL statement "SELECT partition_tablename FROM partman.show_partitions(v_row.parent_table, p_include_default := true) LIMIT 1"
PL/pgSQL function partman.run_maintenance(text,boolean,boolean) line 162 at SQL statement
DETAIL:
HINT:
CONTEXT: PL/pgSQL function partman.run_maintenance(text,boolean,boolean) line 413 at RAISE
SQL state: P0001
public.table1_partitioned was renamed to public.table1 because this table was replacement for non partitioned public.table1.
any idea what could be going on?
Beta Was this translation helpful? Give feedback.
All reactions