Ruleutils_17 Implement ALTER TABLE ... SPLIT PARTITION ... command

Relevant PG commit:
87c21bb9412c8ba2727dec5ebcd74d44c2232d11
87c21bb941
m3hm3t/pg17_isolation_test_cmd_from
naisila 2024-07-25 16:24:33 +02:00
parent 662fc76ec9
commit eefe0aeb4d
No known key found for this signature in database
GPG Key ID: A824BA9862D73E6D
1 changed files with 18 additions and 0 deletions

View File

@ -9691,6 +9691,24 @@ get_range_partbound_string(List *bound_datums)
return buf->data;
}
/*
* get_list_partvalue_string
* A C string representation of one list partition value
*/
char *
get_list_partvalue_string(Const *val)
{
deparse_context context;
StringInfo buf = makeStringInfo();
memset(&context, 0, sizeof(deparse_context));
context.buf = buf;
get_const_expr(val, &context, -1);
return buf->data;
}
/*
* Collect a list of OIDs of all sequences owned by the specified relation,
* and column if specified. If deptype is not zero, then only find sequences