@@ -668,6 +668,15 @@ create_table_using_stmt(CreateStmt *create_stmt, Oid relowner)
668
668
ObjectAddress table_addr ;
669
669
Datum toast_options ;
670
670
static char * validnsps []= HEAP_RELOPT_NAMESPACES ;
671
+ int guc_level ;
672
+
673
+ /* Create new GUC level... */
674
+ guc_level = NewGUCNestLevel ();
675
+
676
+ /* ... and set client_min_messages = WARNING */
677
+ (void )set_config_option ("client_min_messages" ,"WARNING" ,
678
+ PGC_USERSET ,PGC_S_SESSION ,
679
+ GUC_ACTION_SAVE , true,0 , false);
671
680
672
681
/* Create new partition owned by parent's posessor */
673
682
table_addr = DefineRelation (create_stmt ,RELKIND_RELATION ,relowner ,NULL );
@@ -693,6 +702,9 @@ create_table_using_stmt(CreateStmt *create_stmt, Oid relowner)
693
702
/* Now create the toast table if needed */
694
703
NewRelationCreateToastTable (table_addr .objectId ,toast_options );
695
704
705
+ /* Restore original GUC values */
706
+ AtEOXact_GUC (true,guc_level );
707
+
696
708
/* Return the address */
697
709
return table_addr ;
698
710
}