From: | Adrian Klaver <adrian(dot)klaver(at)gmail(dot)com> |
---|---|
To: | Joseph Kregloh <jkregloh(at)sproutloud(dot)com> |
Cc: | John R Pierce <pierce(at)hogranch(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: pg_upgrade & tablespaces |
Date: | 2013-12-20 19:57:52 |
Message-ID: | 52B4A140.6010300@gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
On 12/20/2013 10:42 AM, Joseph Kregloh wrote:
>
> So was your latest attempt where you ended up with a doubled data/
> in the two or one jail scenario?
>
>
> The two jails scenario. The two jail scenario is the same as the mounted
> scenario.
>
> Can we see a directory listing for that case?
>
> You say in the single jail case you got the same results. Which
> would that be the failure, the double data/ or both ?
>
>
>
> Let's break this down between the two cases.
>
> Case A:
> pg_upgrade -b /home/jkregloh/pg_bin/ -B /usr/local/bin/ -d
> /home/jkregloh/pg_data/data -D /usr/local/pgsql/data/ -p 5452 -P 5451
>
> [root(at)postgres-93-upgrade /usr/local/pgsql/data/drupal_dbspace]# ls -la
> drwx------ 3 pgsql pgsql 3 Dec 19 20:18 PG_9.3_201306121
>
> [root(at)postgres-93-upgrade /usr/local/pgsql/data/drupal_dbspace]# ls -la
> /home/jkregloh/pg_data/data/drupal_dbspace/
> drwx------ 4 pgsql pgsql 4 Oct 20 2011 PG_9.0_201008051
So that looks like it worked, or am I missing something.
>
> Case B:
> pg_upgrade -b /home/jkregloh/pg_bin/ -B /usr/local/bin/ -D
> /usr/local/pgsql_93/data -d /usr/local/pgsql/data/ -P 5452 -p 5451
You realize order of switches is not important, but case is, where lower
case is old version, upper is new version. I mention this because the
ports are switched again, assuming your previous statement is correct:
" But the ports I am using are 5451 for 9.3 and 5452 for 9.0."
>
> [pgsql(at)postgres-93-upgrade /usr/local/pgsql_93/data/drupal_dbspace]$ ls
> -la /usr/local/pgsql/data/drupal_dbspace/
> drwx------ 4 pgsql pgsql 4 Oct 20 2011 PG_9.0_201008051
> drwx------ 3 pgsql pgsql 3 Dec 20 16:44 PG_9.3_201306121
To me this looks crossed wires, possibly from the crossed ports above.
What has me confused is where /usr/local/pgsql_93/data comes from?
Did you actually install a Postgres 9.3 instance there?
Or is the 9.3 instance installed in the location in Case A
/usr/local/pgsql/data/ ?
The rest of the message I will leave alone as I pretty sure you are
seeing the results of a crossed install.
--
Adrian Klaver
adrian(dot)klaver(at)gmail(dot)com
From | Date | Subject | |
---|---|---|---|
Next Message | Torsten Förtsch | 2013-12-20 20:46:26 | window function and order by |
Previous Message | Anand Kumar, Karthik | 2013-12-20 19:33:09 | Re: Best way to sync possibly corrupted data? |
From | Date | Subject | |
---|---|---|---|
Next Message | Sergey Konoplev | 2013-12-20 20:01:55 | Re: Hot standby 9.2.6 -> 9.2.6 PANIC: WAL contains references to invalid pages |
Previous Message | Alexander Korotkov | 2013-12-20 19:55:50 | Re: GIN improvements part 1: additional information |