[requrest] PostgreSQL use schema besides 'public'

More
6 years 11 months ago - 6 months 4 weeks ago #117389 by ellobo
Hi!

I'm using a shared postgres database and the admin gave me a non-privileges user with:
search_path=limesurvey, public
 
This means all the tables created by my user end up in the 'limesurvey' schema.
 
I'm unable to install limesurvey in a specific schema. This is an important feature in postgresql because most of the time you're not given an entire database.
 
Thanks in advance,
Regards,
LL
Last edit: 6 months 4 weeks ago by c_schmitz.

Please Log in to join the conversation.

More
6 years 11 months ago #117394 by Wun
Hello,

new to this forum, I second that :-)

I have modified create-pgsql.sql and CPgsqlSchema.php to make it work,
but it seems not to be so simple.

Did somebody get this scenario to work ?

Regards Wun

Hi!

I'm using a shared postgres database and the admin gave me a non-privileges user with:
search_path=limesurvey, public

This means all the tables created by my user end up in the 'limesurvey' schema.

I'm unable to install limesurvey in a specific schema. This is an important feature in postgresql because most of the time you're not given an entire database.

Thanks in advance,
Regards,
LL

Please Log in to join the conversation.

More
4 years 1 week ago #162281 by matarancon
I have the same problem.
Where is the search_path????

Please Log in to join the conversation.

More
3 years 10 months ago #164469 by DenisChenu
Dis someone put this on Bug report or feature request ?

Forum are not the place for this, to start discussion or know if there are a solution, yes. But not for asking the feature …

www.limesurvey.org/community/feature-requests

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development . I don't answer to private message.

Please Log in to join the conversation.

More
6 months 4 weeks ago #217542 by c_schmitz
Here is somewhat of a workaround:

This will work for existing instances, which you moved from 'public' to a new schema.
This does not work for new instances, yet.


To set a custom schema you need to modify the search path by SQL right after establishing connection.


This is possible by adding a initSQL clause to config.php in the DB credentials sections.

( See \application\config\config-sample-sqlsrv.php for an example) .

The related query could be like

"SET search_path TO <name_of_your_accountschema>;"

Best regards

Carsten Schmitz
LimeSurvey project leader

Please Log in to join the conversation.

More
1 month 2 weeks ago #222646 by holch
Just posting here to get rid of the (already deleted) spam message that still shows up in the forum overview. We need to fix the forum software. In the forums with less traffic, those messages show for ever in the preview of the overview page. Not a good image for the forum.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: DenisChenu

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now