@@ -668,6 +668,15 @@ create_table_using_stmt(CreateStmt *create_stmt, Oid relowner)
668668ObjectAddress table_addr ;
669669Datum toast_options ;
670670static 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);
671680
672681/* Create new partition owned by parent's posessor */
673682table_addr = DefineRelation (create_stmt ,RELKIND_RELATION ,relowner ,NULL );
@@ -693,6 +702,9 @@ create_table_using_stmt(CreateStmt *create_stmt, Oid relowner)
693702/* Now create the toast table if needed */
694703NewRelationCreateToastTable (table_addr .objectId ,toast_options );
695704
705+ /* Restore original GUC values */
706+ AtEOXact_GUC (true,guc_level );
707+
696708/* Return the address */
697709return table_addr ;
698710}