Skip to content

Commit be6fbca

Browse files
authored
Merge pull request #54 from japinli/pgv18-warning
Resolve a warning regarding incompatible pointer types
2 parents e182060 + ac5332e commit be6fbca

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

pgtt.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,11 @@ create_temporary_table_internal(Oid parent_relid, bool preserved)
16851685
if (IsA(cur_stmt, CreateStmt))
16861686
{
16871687
Datum toast_options;
1688+
#if PG_VERSION_NUM < 180000
16881689
static char *validnsps[] = HEAP_RELOPT_NAMESPACES;
1690+
#else
1691+
const char *validnsps[] = HEAP_RELOPT_NAMESPACES;
1692+
#endif
16891693
Oid temp_relowner;
16901694

16911695
/* Temporary table owner must be current user */

0 commit comments

Comments
 (0)