Commit 8000fdd
committed
> > - 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.
I changed the code to use sizeof - but will wait for a response from
Peter before changing the size. It's consistent throughout the sequence
code to be 100 for this purpose.
Rod Taylor <rbt@rbt.ca>1 parent a00431b commit 8000fdd
File tree
3 files changed
+56
-27
lines changed- src
- backend/commands
- bin/pg_dump
- include/commands
3 files changed
+56
-27
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | 27 | | |
41 | 28 | | |
42 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
| 56 | + | |
55 | 57 | | |
56 | 58 | | |
57 | 59 | | |
| |||
5986 | 5988 | | |
5987 | 5989 | | |
5988 | 5990 | | |
5989 | | - | |
5990 | | - | |
| 5991 | + | |
| 5992 | + | |
5991 | 5993 | | |
| 5994 | + | |
| 5995 | + | |
5992 | 5996 | | |
5993 | 5997 | | |
5994 | 5998 | | |
| |||
5997 | 6001 | | |
5998 | 6002 | | |
5999 | 6003 | | |
| 6004 | + | |
| 6005 | + | |
| 6006 | + | |
6000 | 6007 | | |
6001 | | - | |
6002 | | - | |
| 6008 | + | |
| 6009 | + | |
| 6010 | + | |
| 6011 | + | |
| 6012 | + | |
| 6013 | + | |
| 6014 | + | |
| 6015 | + | |
| 6016 | + | |
| 6017 | + | |
| 6018 | + | |
6003 | 6019 | | |
6004 | 6020 | | |
6005 | 6021 | | |
| |||
6028 | 6044 | | |
6029 | 6045 | | |
6030 | 6046 | | |
6031 | | - | |
6032 | | - | |
| 6047 | + | |
| 6048 | + | |
| 6049 | + | |
| 6050 | + | |
6033 | 6051 | | |
6034 | 6052 | | |
6035 | 6053 | | |
| |||
6060 | 6078 | | |
6061 | 6079 | | |
6062 | 6080 | | |
6063 | | - | |
6064 | | - | |
| 6081 | + | |
6065 | 6082 | | |
6066 | | - | |
6067 | | - | |
6068 | | - | |
| 6083 | + | |
| 6084 | + | |
| 6085 | + | |
| 6086 | + | |
| 6087 | + | |
| 6088 | + | |
| 6089 | + | |
| 6090 | + | |
| 6091 | + | |
| 6092 | + | |
| 6093 | + | |
| 6094 | + | |
| 6095 | + | |
| 6096 | + | |
| 6097 | + | |
6069 | 6098 | | |
6070 | 6099 | | |
6071 | 6100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
92 | 105 | | |
0 commit comments