Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] how to upgrade postgresql under gentoo "J. Roeleveld" <joost@××××××××.org>