Gentoo Archives: gentoo-user

From: "J. Roeleveld" <joost@××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] how to upgrade postgresql under gentoo
Date: Tue, 11 Nov 2014 07:25:00
Message-Id: 2624137.b62MZlq2mj@andromeda
In Reply to: Re: [gentoo-user] how to upgrade postgresql under gentoo by covici@ccs.covici.com
1 On Monday, November 10, 2014 08:06:50 AM covici@××××××××××.com wrote:
2 > Then they should not change the catalog version -- what is that, anyway?
3
4 You are using a Beta-version. Those are under development and NOT suited for
5 production.
6 If you use a beta-version of any software package, you run the risk of loosing
7 your data.
8 I am not surprised that the layout of the on-disk storage changes between beta
9 versions while the devs try to implement new functionality.
10 You might even have been running with an incompatible combination in the
11 previous beta.
12
13 --
14 Joost
15
16
17 > Vladimir Romanov <blueboar2@×××××.com> wrote:
18 > > Well, i think i understand what happens (through i am not sure) - i was
19 > > upgrading 9.3 to 9.4 - they're installed in different slots, so i just
20 > > istalled two postgresql's in one time. You are upgrading 9.4 to 9.4 - so
21 > > they are in one slot and can not be installed in one time.
22 > >
23 > > But then yes, one can't upgrade the base.
24 > >
25 > > 2014-11-10 17:59 GMT+05:00 <covici@××××××××××.com>:
26 > > > Well, I found the old binaries in my backups and did the deed, the only
27 > > > problems, was that the old data directory did not contain any .conf
28 > > > files, so I copied the new ones into the old data directory and it was
29 > > > then happy. I m not sure what happened to the .conf files in the old
30 > > > data directory, but they had not been there for quite a while, so maybe
31 > > > this was a problem with the arlier beta. Very strange but it looks
32 > > > good.
33 > > >
34 > > > Thanks for your help.
35 > > >
36 > > > Vladimir Romanov <blueboar2@×××××.com> wrote:
37 > > > > Well... then we need someone, who is more professional, since AFAIK
38 > > > > multiple postgresql's can be on one system in several slots. Maybe (as
39 > > > > it
40 > > > > is beta, slots are the same, therefore new deletes old and vice
41 > > > > versa)?
42 > > > >
43 > > > > 2014-11-10 16:47 GMT+05:00 <covici@××××××××××.com>:
44 > > > > > What it does then is delete the beta3 and give me only beta2. This
45 > > > > > is
46 > > > > > what I had done to fix my original problem, I can show you the build
47 > > >
48 > > > log
49 > > >
50 > > > > > for beta3 if that would help. I am using gentoo-unstable, but that
51 > > > > > should be obvious.
52 > > > > >
53 > > > > > Vladimir Romanov <blueboar2@×××××.com> wrote:
54 > > > > > > You updated your beta2 with beta3. Now you can add beta2 again by
55 > > >
56 > > > emerge
57 > > >
58 > > > > > > =dev-db/posgresql-9.4-beta2 (or something like)
59 > > > > > >
60 > > > > > > 2014-11-10 16:36 GMT+05:00 <covici@××××××××××.com>:
61 > > > > > > > Well, after the emerge, no sign of beta2 anywhere, I have the
62 > > >
63 > > > directory
64 > > >
65 > > > > > > > /usr/lib64/postgresql-9.4/ with the beta3 binaries and that is
66 > > >
67 > > > all, is
68 > > >
69 > > > > > > > there a problem with the ebuilds or something?
70 > > > > > > >
71 > > > > > > > Vladimir Romanov <blueboar2@×××××.com> wrote:
72 > > > > > > > > Well, emerge it again :). You can have two postgresql-servers
73 > > > > > > > > in
74 > > > > > > >
75 > > > > > > > different
76 > > > > > > >
77 > > > > > > > > slots.
78 > > > > > > > >
79 > > > > > > > > 2014-11-10 16:21 GMT+05:00 <covici@××××××××××.com>:
80 > > > > > > > > > However, when I emerge beta3, beta2 is gone, so this is my
81 > > >
82 > > > problem.
83 > > >
84 > > > > > > > > > Vladimir Romanov <blueboar2@×××××.com> wrote:
85 > > > > > > > > > > Yes. You emerge both beta2 and beta3, then run pg_upgrade
86 > > > > > > > > > > for
87 > > > > >
88 > > > > > beta3,
89 > > > > >
90 > > > > > > > > > > provide BOTH binaries to it, it converts the base. Then
91 > > > > > > > > > > you
92 > > >
93 > > > can
94 > > >
95 > > > > > > > delete
96 > > > > > > >
97 > > > > > > > > > > beta2.
98 > > > > > > > > > >
99 > > > > > > > > > > 2014-11-10 16:04 GMT+05:00 <covici@××××××××××.com>:
100 > > > > > > > > > > > Hi. I have a puzzle regarding upgrading postgresql. In
101 > > > > > > > > > > > my
102 > > > > >
103 > > > > > recent
104 > > > > >
105 > > > > > > > > > world
106 > > > > > > > > >
107 > > > > > > > > > > > update I went from 9.4_beta2 to beta3, but when I tried
108 > > > > > > > > > > > to
109 > > > > >
110 > > > > > start
111 > > > > >
112 > > > > > > > the
113 > > > > > > >
114 > > > > > > > > > > > server, it complained that the databases were written
115 > > > > > > > > > > > with
116 > > >
117 > > > a
118 > > >
119 > > > > > > > different
120 > > > > > > >
121 > > > > > > > > > > > "catalog version" -- whatever that is, and the
122 > > > > > > > > > > > pg_upgrade
123 > > >
124 > > > tool
125 > > >
126 > > > > > > > requires
127 > > > > > > >
128 > > > > > > > > > > > both old and new binaries to actually upgrade the
129 > > > > > > > > > > > database.
130 > > > > >
131 > > > > > So as
132 > > > > >
133 > > > > > > > a
134 > > > > > > >
135 > > > > > > > > > > > temporary measure, I went back to beta2 and things
136 > > > > > > > > > > > worked
137 > > > > >
138 > > > > > again.
139 > > > > >
140 > > > > > > > So
141 > > > > > > >
142 > > > > > > > > > > > what the heck are you supposed to do here, I like pg,
143 > > > > > > > > > > > but
144 > > >
145 > > > this
146 > > >
147 > > > > > is
148 > > > > >
149 > > > > > > > very
150 > > > > > > >
151 > > > > > > > > > > > strange to me.
152 > > > > > > > > > > >
153 > > > > > > > > > > > Thanks in advance for any suggestions.
154 > > > > > > > > > > >
155 > > > > > > > > > > > --
156 > > > > > > > > > > > Your life is like a penny. You're going to lose it.
157 > > > > > > > > > > > The
158 > > > > >
159 > > > > > question
160 > > > > >
161 > > > > > > > is:
162 > > > > > > > > > > > How do
163 > > > > > > > > > > > you spend it?
164 > > > > > > > > > > >
165 > > > > > > > > > > > John Covici
166 > > > > > > > > > > > covici@××××××××××.com
167 > > > > > > > > > >
168 > > > > > > > > > > ----------------------------------------------------
169 > > > > > > > > > > Alternatives:
170 > > > > > > > > > >
171 > > > > > > > > > > ----------------------------------------------------
172 > > > > > > > > >
173 > > > > > > > > > --
174 > > > > > > > > > Your life is like a penny. You're going to lose it. The
175 > > >
176 > > > question
177 > > >
178 > > > > > is:
179 > > > > > > > > > How do
180 > > > > > > > > > you spend it?
181 > > > > > > > > >
182 > > > > > > > > > John Covici
183 > > > > > > > > > covici@××××××××××.com
184 > > > > > > > >
185 > > > > > > > > ----------------------------------------------------
186 > > > > > > > > Alternatives:
187 > > > > > > > >
188 > > > > > > > > ----------------------------------------------------
189 > > > > > > >
190 > > > > > > > --
191 > > > > > > > Your life is like a penny. You're going to lose it. The
192 > > > > > > > question
193 > > >
194 > > > is:
195 > > > > > > > How do
196 > > > > > > > you spend it?
197 > > > > > > >
198 > > > > > > > John Covici
199 > > > > > > > covici@××××××××××.com
200 > > > > > >
201 > > > > > > ----------------------------------------------------
202 > > > > > > Alternatives:
203 > > > > > >
204 > > > > > > ----------------------------------------------------
205 > > > > >
206 > > > > > --
207 > > > > > Your life is like a penny. You're going to lose it. The question
208 > > > > > is:
209 > > > > > How do
210 > > > > > you spend it?
211 > > > > >
212 > > > > > John Covici
213 > > > > > covici@××××××××××.com
214 > > > >
215 > > > > ----------------------------------------------------
216 > > > > Alternatives:
217 > > > >
218 > > > > ----------------------------------------------------
219 > > >
220 > > > --
221 > > > Your life is like a penny. You're going to lose it. The question is:
222 > > > How do
223 > > > you spend it?
224 > > >
225 > > > John Covici
226 > > > covici@××××××××××.com
227 > >
228 > > ----------------------------------------------------
229 > > Alternatives:
230 > >
231 > > ----------------------------------------------------

Replies

Subject Author
Re: [gentoo-user] how to upgrade postgresql under gentoo covici@××××××××××.com