tables ending with _copy appeared in the database

Started by Eliottabout 12 years ago2 messagesgeneral
Jump to latest
#1Eliott
eliott100@gmail.com

Dear community,

I've just noticed that in one of our databases many duplicate tables had
appeared all ending in _copy. These tables are owned by postgres not
the db owner user, other than that they seem to be a replica from a
specific time in the past. I suspect that a failed backup might have
cased these, but I am not sure. I couldn't find any info tables ending
in _copy and also I thought that backups run in a transaction so even if
they create temporary tables, they should disappear even when the
backups fail.

Can you confirm that this was due to a failed backup? Is it safe to
delete all _copy tables? Should I do any additional housekeeping to
clean this up?
regards
Eliott

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#2Steve Atkins
steve@blighty.com
In reply to: Eliott (#1)
Re: tables ending with _copy appeared in the database

On Feb 5, 2014, at 12:50 PM, Eliott <eliott100@gmail.com> wrote:

Dear community,

I've just noticed that in one of our databases many duplicate tables had appeared all ending in _copy. These tables are owned by postgres not the db owner user, other than that they seem to be a replica from a specific time in the past. I suspect that a failed backup might have cased these, but I am not sure. I couldn't find any info tables ending in _copy and also I thought that backups run in a transaction so even if they create temporary tables, they should disappear even when the backups fail.

Can you confirm that this was due to a failed backup?

It’s not.

It sounds like something that a client app would do, possibly as part of a (failed) data migration. What app is using the database?

Is it safe to delete all _copy tables? Should I do any additional housekeeping to clean this up?

Cheers,
Steve

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general