|
From: Matteo D. <M.D...@gs...> - 2012-11-14 12:10:46
|
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' 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 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 |
|
From: Nikhil S. <ni...@st...> - 2012-11-14 12:23:31
|
Hi Matteo, Where did you get the instruction to use -X exactly? Maybe that specific documentation is out of date. Please use "-Z" instead of "-X". Regards, Nikhils On Wed, Nov 14, 2012 at 5:40 PM, Matteo Dessalvi <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' > > 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 > 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 > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > -- StormDB - http://www.stormdb.com The Database Cloud Postgres-XC Support and Service |
|
From: Matteo D. <M.D...@gs...> - 2012-11-14 12:36:45
|
Hi. The tutorial I am following is here: http://postgres-xc.sourceforge.net/docs/1_0/index.html Since it is located on the main Postgres XC web site and the title is "Postgres-XC 1.0.1 Documentation" I thought it should be the most up to date documentation. Thanks for your answer but unfortunately I get the same error with the '-Z' option too: postgres: invalid option -- 'Z' and looking in the source code I can't find the '-Z' option as a command line parameter. I have pulled my sources directly from the git repository on GitHub: https://github.com/postgres-xc/postgres-xc.git so I believe I am not using some outdated version. Best regards, Matteo On 14.11.2012 13:23, Nikhil Sontakke wrote: > Hi Matteo, > > Where did you get the instruction to use -X exactly? Maybe that > specific documentation is out of date. > > Please use "-Z" instead of "-X". > > Regards, > Nikhils > > On Wed, Nov 14, 2012 at 5:40 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' > > 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 > 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 > > > > > -- > StormDB - http://www.stormdb.com > The Database Cloud > Postgres-XC Support and Service -- 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 |
|
From: Michael P. <mic...@gm...> - 2012-11-14 12:38:08
|
On Wed, Nov 14, 2012 at 9:10 PM, Matteo Dessalvi <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 > 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 > > > > ------------------------------------------------------------------------------ > 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... > https://lists.sourceforge.net/lists/listinfo/postgres-xc-general > -- Michael Paquier http://michael.otacoo.com |
|
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
|
|
From: Michael P. <mic...@gm...> - 2012-11-14 13:28:41
|
On Wed, Nov 14, 2012 at 10:22 PM, Matteo Dessalvi <M.D...@gs...> wrote:
> 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?
>
Completely right :)
Thanks for noticing!
--
Michael Paquier
http://michael.otacoo.com
|
|
From: Michael P. <mic...@gm...> - 2012-11-15 00:19:58
|
I just committed the fix for the comment. Will take care of correcting
pg_ctl.sgmlin later.
On Wed, Nov 14, 2012 at 10:28 PM, Michael Paquier <mic...@gm...
> wrote:
>
>
> On Wed, Nov 14, 2012 at 10:22 PM, Matteo Dessalvi <M.D...@gs...>wrote:
>
>> 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?
>>
> Completely right :)
> Thanks for noticing!
> --
> Michael Paquier
> http://michael.otacoo.com
>
--
Michael Paquier
http://michael.otacoo.com
|