]> granicus.if.org Git - postgresql/commitdiff
Remove some unnecessary conversion work in build_regtype_array().
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Jan 2007 19:05:35 +0000 (19:05 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 28 Jan 2007 19:05:35 +0000 (19:05 +0000)
src/backend/commands/prepare.c

index ddec174c784b7689d4315d22846f5c0550f29052..ecd5074211e917b93a4f08a93730032398833e2c 100644 (file)
@@ -10,7 +10,7 @@
  * Copyright (c) 2002-2007, PostgreSQL Global Development Group
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.67 2007/01/05 22:19:26 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/commands/prepare.c,v 1.68 2007/01/28 19:05:35 tgl Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -781,12 +781,7 @@ build_regtype_array(List *oid_list)
        i = 0;
        foreach(lc, oid_list)
        {
-               Oid                     oid;
-               Datum           oid_str;
-
-               oid = lfirst_oid(lc);
-               oid_str = DirectFunctionCall1(oidout, ObjectIdGetDatum(oid));
-               tmp_ary[i++] = DirectFunctionCall1(regtypein, oid_str);
+               tmp_ary[i++] = ObjectIdGetDatum(lfirst_oid(lc));
        }
 
        /* XXX: this hardcodes assumptions about the regtype type */