CREATE TABLE
.SELECT
on tables function without issues.CREATE TABLE
statement functions without issues when connected to the master or when the segment is in the utility mode.Check the NextOID on the master and some of the segments with the following commands.
On the master:
pg_controldata $MASTER_DATA_DIRECTORY | egrep NextOID
On the segments:
pg_controldata </path/to/the/segment/directory/> | egrep NextOID
Note: Replace </path/to/the/segment/directory/> with the correct path to segment.
Verify that the following is true:
If the above statements are true, then cause the OID on the segments to overflow by connecting to the segments directly in utility mode and creating and dropping test tables.
The suggested SQL statements to run on each segment are mentioned below. The "SELECT oid.." will report the current OID used on the segment and will show when the OID overflows.
CREATE TABLE test_overflow_table (a INTEGER); SELECT oid FROM pg_class WHERE relname = 'test_overflow_table'; DROP TABLE test_overflow_table;