diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-05-24 02:47:47 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-05-24 02:47:47 +0000 |
| commit | 3661d1d6e0342332c98c7a7ad5849e7e963f9615 (patch) | |
| tree | 13ca4644dcc0154f95159f7c6ce51e071eb464fb /src/backend/main | |
| parent | dc3993776270c106a21bfd6dabd8a8be059b5b4f (diff) | |
| download | postgresql-3661d1d6e0342332c98c7a7ad5849e7e963f9615.tar.gz | |
This patch fixes the find_my_exec code for pgstat backends. Required for
TZ stuff (and possibly others) to work in the pgstat backends.
Magnus Hagander
Diffstat (limited to 'src/backend/main')
| -rw-r--r-- | src/backend/main/main.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 535da36b91..9216c2c4be 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -13,7 +13,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/main/main.c,v 1.80 2004/05/19 18:58:44 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/main/main.c,v 1.81 2004/05/24 02:47:44 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -278,22 +278,20 @@ main(int argc, char *argv[]) } /* - * If the first argument is "-statBuf", then invoke pgstat_main. Note - * we remove "-statBuf" from the arguments passed on to pgstat_main. + * If the first argument is "-statBuf", then invoke pgstat_main. */ if (argc > 1 && strcmp(argv[1], "-statBuf") == 0) { - pgstat_main(argc - 2, argv + 2); + pgstat_main(argc , argv); exit(0); } /* - * If the first argument is "-statCol", then invoke pgstat_mainChild. Note - * we remove "-statCol" from the arguments passed on to pgstat_mainChild. + * If the first argument is "-statCol", then invoke pgstat_mainChild. */ if (argc > 1 && strcmp(argv[1], "-statCol") == 0) { - pgstat_mainChild(argc - 2, argv + 2); + pgstat_mainChild(argc, argv); exit(0); } #endif |
