@@ -2316,7 +2316,6 @@ free_attrmap_ext(AttrMapExt *map)
23162316 pfree (map );
23172317}
23182318
2319-
23202319/*
23212320 * Like convert_tuples_by_name() in PG core, but try to coerce if the input
23222321 * and output types differ.
@@ -2820,40 +2819,6 @@ pg_rewrite_get_task_list(PG_FUNCTION_ARGS)
28202819#endif
28212820}
28222821
2823- /*
2824- * SQL interface for copy_constraints(). This is for development and testing,
2825- * not to be added to the extension's script.
2826- *
2827- * TODO Consider removal when development is finished.
2828- */
2829- PG_FUNCTION_INFO_V1 (pg_rewrite_create_constraints );
2830- Datum
2831- pg_rewrite_create_constraints (PG_FUNCTION_ARGS )
2832- {
2833- text * rel_t ;
2834- RangeVar * rv ;
2835- Relation rel ;
2836- Oid relid_src , relid_dst ;
2837- const char * relname_dst ;
2838-
2839- rel_t = PG_GETARG_TEXT_PP (0 );
2840- rv = makeRangeVarFromNameList (textToQualifiedNameList (rel_t ));
2841- rel = table_openrv (rv , AccessShareLock );
2842- relid_src = RelationGetRelid (rel );
2843- table_close (rel , AccessShareLock );
2844-
2845- rel_t = PG_GETARG_TEXT_PP (1 );
2846- rv = makeRangeVarFromNameList (textToQualifiedNameList (rel_t ));
2847- rel = table_openrv (rv , AccessShareLock );
2848- relid_dst = RelationGetRelid (rel );
2849- relname_dst = pstrdup (RelationGetRelationName (rel ));
2850- table_close (rel , AccessShareLock );
2851-
2852- copy_constraints (relid_dst , relname_dst , relid_src );
2853-
2854- PG_RETURN_VOID ();
2855- }
2856-
28572822/*
28582823 * Create constraints on "destination relation" according to "source relation"
28592824 * and mark them NOT VALID.
0 commit comments