postgresql new database port

Questions and answers regarding general SQL and backend databases

postgresql new database port

Postby rogel » Fri Nov 04, 2011 8:02 am

hi! how do you create a new database server port? do you need to install postgresql again?
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Re: postgresql new database port

Postby ROCLASI » Fri Nov 04, 2011 9:20 am

Hi Rogel,

You can assign a different port to PostgreSQL by editing the postgresql.conf file. Ofcourse after this change you need to restart the PostgreSQL service.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: postgresql new database port

Postby rogel » Mon Nov 07, 2011 12:39 am

ROCLASI wrote:Hi Rogel,

You can assign a different port to PostgreSQL by editing the postgresql.conf file. Ofcourse after this change you need to restart the PostgreSQL service.

Hope this helps.

Can we have 2 ports running on the same service?
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Re: postgresql new database port

Postby ROCLASI » Mon Nov 07, 2011 5:49 am

PostgreSQL itself can only use 1 port.
Why do you need multiple ports on the same service ? What benefit would that give you ?
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: postgresql new database port

Postby rogel » Mon Nov 14, 2011 6:13 pm

ROCLASI wrote:PostgreSQL itself can only use 1 port.
Why do you need multiple ports on the same service ? What benefit would that give you ?

hi robert,

just for development.
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am

Re: postgresql new database port

Postby ROCLASI » Mon Nov 14, 2011 11:36 pm

Hi Rogel,

Still then you don't need different ports in the same service.
You can do 2 things here:
1) setup 2 PostgreSQL instances each on their own port number running side by side.
2) use 1 PostgreSQL instance and have 1 set of developement databases and 1 set of deployment databases.
The connection names in Developer will be the same as the deployment server but the connection string will point to the dev db's instead.

Hope this helps.
Robert Ivens
SAN Developer / Servoy Valued Professional / Servoy Certified Developer

ROCLASI Software Solutions / JBS Group, Partner
Mastodon: @roclasi
--
ServoyForge - Building Open Source Software.
PostgreSQL - The world's most advanced open source database.
User avatar
ROCLASI
Servoy Expert
 
Posts: 5438
Joined: Thu Oct 02, 2003 9:49 am
Location: Netherlands/Belgium

Re: postgresql new database port

Postby rogel » Tue Nov 22, 2011 8:06 am

ROCLASI wrote:Hi Rogel,

Still then you don't need different ports in the same service.
You can do 2 things here:
1) setup 2 PostgreSQL instances each on their own port number running side by side.
2) use 1 PostgreSQL instance and have 1 set of developement databases and 1 set of deployment databases.
The connection names in Developer will be the same as the deployment server but the connection string will point to the dev db's instead.

Hope this helps.


Thanks! I think I followed number 2. :)
rogel
 
Posts: 264
Joined: Mon Jul 04, 2011 9:09 am


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 14 guests