|
From: Matteo D. <M.D...@gs...> - 2012-11-14 13:22:15
|
Ok, thank you Michael. Using the '--cordinator' and '--datanode' options
I was able to start my test cluster and now it's up and running :-).
May I also suggest a slightly modification on
src/backend/postmaster/postmaster.c?
At line 780, inside the #ifdef PGXC ... #endif the line
write_stderr("%s: Postgres-XC: must start as either a Coordinator
(--datanode) or Data Node (--datanode)\n" (...)
should be something like this:
write_stderr("%s: Postgres-XC: must start as either a Coordinator
(--coordinator) or Data Node (--datanode)\n" (...)
Is it right?
Best regards,
Matteo
On 14.11.2012 13:37, Michael Paquier wrote:
>
>
> On Wed, Nov 14, 2012 at 9:10 PM, Matteo Dessalvi <M.D...@gs...
> <mailto:M.D...@gs...>> wrote:
>
> Hi all.
>
> I am testing Postgres XC for a project I am starting at my work
> place .
> I apologize
> if the following is already a known issue.
>
> I was following the installation tutorial on the Postgres XC web site
> (on Sourceforge)
> and I have managed to install Postgresql XC 1.0.1 on a Debian
> Wheezy VM
> (creating a
> deb package from the sources), but when I am trying to start the
> postgres instances
> (using the postgres user) for the datanodes I'll get this error:
>
> postgres: invalid option -- 'X'
>
> X option is valid for versions 1.0.X as specified on the docs:
> http://postgres-xc.sourceforge.net/docs/1_0/app-postgres.html
> X is used to start a node as a Datanode and C as a Coordinator
>
> On current master branch, those have been changed into more generic
> options --coordinator and --datanode to avoid any future conflicts
> with postgres options.
>
> On the other hand, pg_ctl uses -Z coordinator/datanode to start a node
> as a Coordinator or a Datanode.
> It is specified on the docs here:
> http://postgres-xc.sourceforge.net/docs/1_0/app-pg-ctl.html
> However this page looks to be outdated. I am going to fix that tomorrow.
>
>
>
> I was looking under
> postgresql-xc-1.0.1/src/backend/tcop/postgres.c and
> in fact this option
> is not listed on the function process_postgres_switches(...), nor
> it is
> mentioned in main.c,
> located under postgresql-xc-1.0.1/src/backend/main.
> I also tried to find this option on the main Postgresql versions
> (9.1/9.0/8.4) but it seems that
> there isn't any reference to a '-X' option.
>
> According to the short tutorial on
> http://postgres-xc.sourceforge.net/docs/1_0/install-short.html
> this is the required procedure to start the cluster. If I try to start
> the datanodes without the '-X'
> option I'll get another error:
>
> Postgres-XC: must start as either a Coordinator (--datanode) or Data
> Node (--datanode)
>
> which means, I guess, that this option has something to do with the
> roles of the instances.
>
>
> Thanks in advance.
>
>
> Best regards,
> Matteo
>
> --
> Matteo Dessalvi
> Abteilung: HPC
> Ort: SB3.1.250
>
> Fax.: +49 6159 71 2986 <tel:%2B49%206159%2071%202986>
> E-Mail:m.d...@gs... <mailto:E-Mail%3Am...@gs...>
>
> GSI Helmholtzzentrum für Schwerionenforschung GmbH Planckstraße 1
> 64291 Darmstadt
> www.gsi.de <http://www.gsi.de>
>
> Gesellschaft mit beschränkter Haftung
> Sitz der Gesellschaft: Darmstadt
> Handelsregister: Amtsgericht Darmstadt, HRB 1528
>
> Geschäftsführung: Professor Dr. Dr. h.c. mult. Horst Stöcker,
> Peter Hassenbach
>
> Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
> Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases,
> vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Postgres-xc-general mailing list
> Pos...@li...
> <mailto:Pos...@li...>
> https://lists.sourceforge.net/lists/listinfo/postgres-xc-general
>
>
>
>
> --
> Michael Paquier
> http://michael.otacoo.com
--
Matteo Dessalvi
Abteilung: HPC
Ort: SB3.1.250
Fax.: +49 6159 71 2986
E-Mail:m.d...@gs...
GSI Helmholtzzentrum für Schwerionenforschung GmbH Planckstraße 1
64291 Darmstadt
www.gsi.de
Gesellschaft mit beschränkter Haftung
Sitz der Gesellschaft: Darmstadt
Handelsregister: Amtsgericht Darmstadt, HRB 1528
Geschäftsführung: Professor Dr. Dr. h.c. mult. Horst Stöcker,
Peter Hassenbach
Vorsitzende des Aufsichtsrates: Dr. Beatrix Vierkorn-Rudolph
Stellvertreter: Ministerialdirigent Dr. Rolf Bernhardt
|