Hot Deploy in PostGres

Поиск
Список
Период
Сортировка
Искать

Hot Deploy in PostGres

От:
Ishaya Bhatt <ishayabhatt@gmail.com>
Дата:
Hi,

     Is there any way in which I can hot deploy changes to the source code of PostGres to the server without having to run configure command again?

Thanks in advance for your help!

Re: Hot Deploy in PostGres

От:
Luca Ferrari <fluca1978@infinito.it>
Дата:
On Sun, Sep 15, 2013 at 3:26 PM, Ishaya Bhatt  wrote:
> Hi,
>
>      Is there any way in which I can hot deploy changes to the source code
> of PostGres to the server without having to run configure command again?
>

I'm not sure what the question really is. Well, configure is used in
preparation for a full compile, so if you are going to touch only the
source code without having to change any external dependency, then you
don't need to run configure again (but you have to compile the tree of
course).
What is your aim?

Luca

Re: Hot Deploy in PostGres

От:
Ishaya Bhatt <ishayabhatt@gmail.com>
Дата:
I am trying to make some changes to the sorting code(C code of backend). In the process, whenever I make some changes, I have to run 'make install' again so as to compile and redeploy my changes to the server. Is there any faster way where I can deploy my changes without having to restart the server?


On Mon, Sep 16, 2013 at 5:47 PM, Luca Ferrari <fluca1978@infinito.it> wrote:
On Sun, Sep 15, 2013 at 3:26 PM, Ishaya Bhatt <ishayabhatt@gmail.com> wrote:
> Hi,
>
>      Is there any way in which I can hot deploy changes to the source code
> of PostGres to the server without having to run configure command again?
>

I'm not sure what the question really is. Well, configure is used in
preparation for a full compile, so if you are going to touch only the
source code without having to change any external dependency, then you
don't need to run configure again (but you have to compile the tree of
course).
What is your aim?

Luca

Re: Hot Deploy in PostGres

От:
Merlin Moncure <mmoncure@gmail.com>
Дата:
On Mon, Sep 16, 2013 at 7:22 AM, Ishaya Bhatt  wrote:
> I am trying to make some changes to the sorting code(C code of backend). In
> the process, whenever I make some changes, I have to run 'make install'
> again so as to compile and redeploy my changes to the server. Is there any
> faster way where I can deploy my changes without having to restart the
> server?

Well, technically you could run 'make' (building the binaries) and
manually get that binary to wherever pg_ctl is looking...if you were
feeling really dirty you could use a symlink.  it's not clear how much
time you'd really be saving however -- the install step of make
doesn't really take all that long.  Also, there's no way to deploy
changes without restarting the server except in the very special case
of libraries loaded with LOAD.

merlin

Re: Hot Deploy in PostGres

От:
Luca Ferrari <fluca1978@infinito.it>
Дата:
On Mon, Sep 16, 2013 at 2:22 PM, Ishaya Bhatt  wrote:
> I am trying to make some changes to the sorting code(C code of backend). In
> the process, whenever I make some changes, I have to run 'make install'
> again so as to compile and redeploy my changes to the server. Is there any
> faster way where I can deploy my changes without having to restart the
> server?

Uhm...this is not OSGi. I don't believe it is possible to change such
a deep piece of code of the server without having to recompile (i.e.,
I don't think there is a dynamic linking available) and therefore
without having to restart the whole software.

Luca

FAQ