| From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
|---|---|
| To: | gjerde(at)icebox(dot)org |
| Cc: | pgsql-hackers(at)postgreSQL(dot)org |
| Subject: | Re: [HACKERS] Minor pg_dump buglet |
| Date: | 1999-05-10 18:20:19 |
| Message-ID: | 199905101820.OAA04423@candle.pha.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Sure, can you send us a patch:
> Also, in getTables() in pg_dump.c there are at least a couple of these:
> if (!res ||
> PQresultStatus(res) != PGRES_COMMAND_OK)
> {
> fprintf(stderr, "BEGIN command failed\n");
> exit_nicely(g_conn);
> }
>
> Shouldn't this be more like
> if (!res ||
> PQresultStatus(res) != PGRES_COMMAND_OK)
> {
> fprintf(stderr, "BEGIN command failed(%s)\n", PGresultErrorMessage(res));
> exit_nicely(g_conn);
> }
> or
> if (!res)
> {
> fprintf(stderr, "BEGIN command failed\n");
> exit_nicely(g_conn);
> } else if(PGresultStatus(res) != PGRES_COMMAND_OK) {
> fprintf(stderr, "BEGIN command failed. ERROR: %s\n", PGresultErrorMessage(res));
> exit_nicely(g_conn);
> }
>
> Thanks,
> Ole Gjerde
>
>
>
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 1999-05-10 18:26:40 | Re: [HACKERS] Oops, I seem to have changed UNION's behavior |
| Previous Message | Bruce Momjian | 1999-05-10 18:19:04 | Re: [HACKERS] INSERT INTO |