Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Remove pg_regress' --load-language option.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Feb 2020 16:20:07 +0000 (11:20 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 14 Feb 2020 16:20:07 +0000 (11:20 -0500)
We haven't used this option since inventing extensions.  As of commit
50fc694e4 it's actually formally equivalent to --load-extension, so
let's just drop it.

Discussion: https://postgr.es/m/6853.1581627393@sss.pgh.pa.us

src/test/regress/pg_regress.c

index 92bd28dc5a3f0c1324a30f5b83a3cba28808c2a2..9a4e52bc7b241255d333aa6a5970178d4f3f66dd 100644 (file)
@@ -76,7 +76,6 @@ char     *inputdir = ".";
 char      *outputdir = ".";
 char      *bindir = PGBINDIR;
 char      *launcher = NULL;
-static _stringlist *loadlanguage = NULL;
 static _stringlist *loadextension = NULL;
 static int max_connections = 0;
 static int max_concurrent_tests = 0;
@@ -1997,16 +1996,6 @@ create_database(const char *dbname)
                 "ALTER DATABASE \"%s\" SET timezone_abbreviations TO 'Default';",
                 dbname, dbname, dbname, dbname, dbname, dbname);
 
-   /*
-    * Install any requested procedural languages.  We use CREATE OR REPLACE
-    * so that this will work whether or not the language is preinstalled.
-    */
-   for (sl = loadlanguage; sl != NULL; sl = sl->next)
-   {
-       header(_("installing %s"), sl->str);
-       psql_command(dbname, "CREATE OR REPLACE LANGUAGE \"%s\"", sl->str);
-   }
-
    /*
     * Install any requested extensions.  We use CREATE IF NOT EXISTS so that
     * this will work whether or not the extension is preinstalled.
@@ -2058,8 +2047,6 @@ help(void)
    printf(_("      --launcher=CMD            use CMD as launcher of psql\n"));
    printf(_("      --load-extension=EXT      load the named extension before running the\n"));
    printf(_("                                tests; can appear multiple times\n"));
-   printf(_("      --load-language=LANG      load the named language before running the\n"));
-   printf(_("                                tests; can appear multiple times\n"));
    printf(_("      --max-connections=N       maximum number of concurrent connections\n"));
    printf(_("                                (default is 0, meaning unlimited)\n"));
    printf(_("      --max-concurrent-tests=N  maximum number of concurrent tests in schedule\n"));
@@ -2096,7 +2083,6 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
        {"dbname", required_argument, NULL, 1},
        {"debug", no_argument, NULL, 2},
        {"inputdir", required_argument, NULL, 3},
-       {"load-language", required_argument, NULL, 4},
        {"max-connections", required_argument, NULL, 5},
        {"encoding", required_argument, NULL, 6},
        {"outputdir", required_argument, NULL, 7},
@@ -2172,9 +2158,6 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
            case 3:
                inputdir = pg_strdup(optarg);
                break;
-           case 4:
-               add_stringlist_item(&loadlanguage, optarg);
-               break;
            case 5:
                max_connections = atoi(optarg);
                break;