Yes, it did run out of free space when some test data was being loaded.
I added more space, could this be the cause of the issue? I ran a Vacuum
Full on the entire database after adding more free space, but the size
of the database is still significantly larger than the sum of the
objects in it.
Is there a chance that you run out of disks space
recently?
CONFIDENTIALITY NOTICE: The information contained in this email (and any
attachments) is privileged and confidential and protected from
disclosure. If you are not the intended recipient of this email or the
attachments, be aware that any disclosure, copying,
distribution or use of this email or any attachment is strictly
prohibited and you should not read the message or read or open any
attachment. If you have received this email by mistake, please
immediately notify the sender and delete it permanently from your
system. Agri Stats, Inc. and its subsidiaries will not be held liable
to any person or entity resulting from the unintended or unauthorized
use of any information contained in this email.
Sure, I tried that before I posted to the mailing list.
This is the size of the restored database with a different name:
[postgres@localhost ~]$ pg_dump FVDM > /tmp/out.sql
[postgres@localhost ~]$ less /tmp/out.sql
[postgres@localhost ~]$ createdb FVDM_restored
[postgres@localhost ~]$ psql FVDM_restored </tmp/out.sql
....completes no errors....
postgres=# SELECT d.datname AS Name,
pg_catalog.pg_get_userbyid(d.datdba) AS Owner,
CASE WHEN pg_catalog.has_database_privilege(d.datname,
'CONNECT')
THEN
pg_catalog.pg_size_pretty(pg_catalog.pg_database_size(d.datname))
ELSE 'No Access'
END AS SIZE
FROM pg_catalog.pg_database d
ORDER BY
CASE WHEN pg_catalog.has_database_privilege(d.datname,
'CONNECT')
THEN pg_catalog.pg_database_size(d.datname)
ELSE NULL
END DESC -- nulls first
LIMIT 20;
name | owner | size
---------------+----------+---------
FVDM | postgres | 43 GB
FVDM_restored | postgres | 497 MB
Can you try to dump the database and then restore it
with a different name ? Check if the size of the restored one is the
same.
CONFIDENTIALITY NOTICE: The information contained in this email (and any
attachments) is privileged and confidential and protected from
disclosure. If you are not the intended recipient of this email or the
attachments, be aware that any disclosure, copying,
distribution or use of this email or any attachment is strictly
prohibited and you should not read the message or read or open any
attachment. If you have received this email by mistake, please
immediately notify the sender and delete it permanently from your
system. Agri Stats, Inc. and its subsidiaries will not be held liable
to any person or entity resulting from the unintended or unauthorized
use of any information contained in this email.
Can
you try to dump the database and then restore it with a different name ?
Check if the size of the restored one is the same.