From: | Gavin Sherry <swm(at)linuxworld(dot)com(dot)au> |
---|---|
To: | Rod Taylor <rbt(at)rbt(dot)ca> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Allow pg_dump to dump sequences using NO_MAXVALUE and |
Date: | 2003-02-23 14:05:41 |
Message-ID: | Pine.LNX.4.21.0302240101010.30803-100000@linuxworld.com.au |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
On 23 Feb 2003, Rod Taylor wrote:
> - Move SEQ_MAXVALUE, SEQ_MINVALUE definitions to sequence.h
>
> - Add check in pg_dump to see if the value returned is the max /min
> values and replace with NO MAXVALUE, NO MINVALUE.
>
> - Change START and INCREMENT to use START WITH and INCREMENT BY syntax.
> This makes it a touch easier to port to other databases with sequences
> (Oracle). PostgreSQL supports both syntaxes already.
+ char bufm[100],
+ bufx[100];
This seems to be an arbitary size. Why not set it to the actual maximum
length?
Also:
+ snprintf(bufm, 100, INT64_FORMAT, SEQ_MINVALUE);
+ snprintf(bufx, 100, INT64_FORMAT, SEQ_MAXVALUE);
sizeof(bufm), sizeof(bufx) is probably the more
maintenance-friendly/standard way to do it.
Thanks,
Gavin
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2003-02-23 14:58:41 | Re: [HACKERS] Allow pg_dump to dump sequences using NO_MAXVALUE |
Previous Message | Rod Taylor | 2003-02-23 13:39:49 | Allow pg_dump to dump sequences using NO_MAXVALUE and NO_MINVALUEb |
From | Date | Subject | |
---|---|---|---|
Next Message | Rod Taylor | 2003-02-23 14:58:41 | Re: [HACKERS] Allow pg_dump to dump sequences using NO_MAXVALUE |
Previous Message | Rod Taylor | 2003-02-23 13:39:49 | Allow pg_dump to dump sequences using NO_MAXVALUE and NO_MINVALUEb |