Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    WMS
    WMS is offline
    Member
    Join Date
    Jul 2003
    Location
    Moscow
    Posts
    40

    Default PostgreSQL support: Bugs

    I've played with pgsql support and found couple of bugs:

    1. phpPgAdmin shows ALL the databases to user by default even if he's not the owner. It can be fixed by editing conf-file.
    2. By default pgsql does not allow network connections, but phpPgAdmin uses network connection to pgsql instead of unix domain socket.
    3. User is able to see all the databases in the system with psql AND ABLE TO CREATE TABLES IN DATABASES OF OTHER PERSONS (!!!!!!!!!)
    4. Unable to delete database through Cpanel (even if it's been created with Cpanel).

    Maybe I do something wrong?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:

  2. #2
    Member
    Join Date
    Mar 2003
    Posts
    863

    Default

    ** BUMP **

    cPanel.net Support Ticket Number:

  3. #3
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default Re: PostgreSQL support: Bugs

    Originally posted by WMS
    I've played with pgsql support and found couple of bugs:

    1. phpPgAdmin shows ALL the databases to user by default even if he's not the owner. It can be fixed by editing conf-file.
    2. By default pgsql does not allow network connections, but phpPgAdmin uses network connection to pgsql instead of unix domain socket.
    3. User is able to see all the databases in the system with psql AND ABLE TO CREATE TABLES IN DATABASES OF OTHER PERSONS (!!!!!!!!!)
    4. Unable to delete database through Cpanel (even if it's been created with Cpanel).

    Maybe I do something wrong?

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
    Try the latest edge/release/stable builds.

    They have a few more fixes

    cPanel.net Support Ticket Number:

  4. #4
    WMS
    WMS is offline
    Member
    Join Date
    Jul 2003
    Location
    Moscow
    Posts
    40

    Default

    I've upgraded to 7.4.2-S82.
    Now I'm able to remove databases, but no able to create.

    This is REALLY great!

    cPanel.net Support Ticket Number:

  5. #5
    WMS
    WMS is offline
    Member
    Join Date
    Jul 2003
    Location
    Moscow
    Posts
    40

    Default

    Sorry, everything's fine.

    I'm able to drop and create databases.

    But the problem #3: "User is able to see all the databases in the system with psql AND ABLE TO CREATE TABLES IN DATABASES OF OTHER PERSONS (!!!!!!!!!)" is still alive

    That's not good.

    cPanel.net Support Ticket Number:

  6. #6
    Member
    Join Date
    Nov 2002
    Location
    Canada
    Posts
    184

    Default

    Originally posted by WMS
    But the problem #3: "User is able to see all the databases in the system with psql AND ABLE TO CREATE TABLES IN DATABASES OF OTHER PERSONS (!!!!!!!!!)" is still alive
    Check this post. I don't believe it solves the problem, but it may help a little.

    http://forums.cpanel.net/showthread....3474#post63030

    cPanel.net Support Ticket Number:

  7. #7
    WMS
    WMS is offline
    Member
    Join Date
    Jul 2003
    Location
    Moscow
    Posts
    40

    Default

    Thanx! But I already did it.

    The problem is in psql or any other type of connection to postgresql (with php, perl or with shell).

    Any user is able to see ALL databases and able to create tables in ANY database.

    That's it

    cPanel.net Support Ticket Number:

  8. #8
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    One more issue to add, cannot create if ID has a '-' in it. It will fail with ERROR: parser: parse error at or near "-" at character 12

    cPanel.net Support Ticket Number:
    Regards,
    David
    Forum Moderator

  9. #9
    Moderator cPanel Partner NOC Badge dgbaker's Avatar
    Join Date
    Sep 2002
    Location
    Toronto, Ontario Canada
    Posts
    2,773

    Default

    Anyone with user ID with dash (-) in the name is screwed for using this version of PostGreSQL.

    Coming 7.4 Beta 1

    Allow username containing a dash GRANT permissions


    Nick - Is there any way around this?

    cPanel.net Support Ticket Number:
    Regards,
    David
    Forum Moderator

  10. #10
    Member
    Join Date
    Mar 2003
    Posts
    14

    Default postgreSQL Not included in backups??

    I reviewed our backup log today, and noticed that there is nothing listed as having backed up postgreSQL databases.

    pkgacctfile is: /backup/cpbackup/daily/aliweb.tar.gz
    Creating Archive ....Done
    Copying Mail files....Done
    Copying proftpd file....Done
    Grabbing mysql dbs...Done
    Grabbing mysql privs...Done
    Copying mailman lists....Done
    Copying mailman archives....Done
    Copying homedir....Done
    Copying cpuser file.......Done
    Copying quota info.......Done
    Storing Subdomains....
    Done
    Storing Parked Domains....
    Done
    Copying password.......Done
    Copying shell.......Done

    I see mySQL, but not postgreSQL. Anyone know if they are in fact being backed up?? Anyone tried to do a restore of a home backup to see if the databases reappear??

    cPanel.net Support Ticket Number:

Similar Threads & Tags
Similar threads

  1. Mail Delivery Stats update? BUGS!!! BUGS!!! BUGS!!!
    By web-project in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-04-2010, 07:11 PM
  2. cPanel support bugs me sometimes.
    By wills in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-09-2007, 09:34 PM
  3. Replies: 1
    Last Post: 06-15-2005, 03:44 AM
  4. PostgreSQL support , where ?
    By dxer in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-13-2003, 08:55 PM
  5. PostgreSQL Support?
    By rwgrier in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 04-12-2002, 09:58 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube