Raised This Month: $51 Target: $400
 12% 

Any chance for PostGreSQL support in Sourcemod?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obsidian
Senior Member
Join Date: Jun 2011
Old 07-12-2011 , 21:02   Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #1

Hi, I'm curious to know if adding PGSQL support to sourcemod has been considered at all. I've been getting awful nervous about MySQL's maintenance and availability every since Sun was bought out by Oracle, and Oracle beginning a holy legal war about the use of Java.

I've been moving more and more of my own code to PGSQL, but with sourcemod being sqlite or mysql only, I'm a bit hindered in shutting down MySQL on my own box (and I don't like having to run 2 DBMS's).

Postgres, pretty please? ;_;
Obsidian is offline
BAILOPAN
Join Date: Jan 2004
Old 07-12-2011 , 21:30   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #2

https://bugs.alliedmods.net/show_bug.cgi?id=3849

This had a patch in it, but there were problems - the original author kindly posted his working tree and offered it up to any takers. It would need to be re-patchified and submitted for review.
__________________
egg
BAILOPAN is offline
DarkEnergy
SourceMod Donor
Join Date: Apr 2008
Location: Georgia Tech, MSECE
Old 07-12-2011 , 23:04   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #3

maintenance and availability? its definitely not going away any time soon.
__________________
War3:Source Developer
"Your CPU is just a bunch of Muxes"
DarkEnergy is offline
8088
Veteran Member
Join Date: Jan 2008
Old 07-12-2011 , 23:17   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #4

And if it will, there's MariaDB.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Obsidian
Senior Member
Join Date: Jun 2011
Old 07-13-2011 , 14:31   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #5

Quote:
Originally Posted by DarkEnergy View Post
maintenance and availability? its definitely not going away any time soon.
Oracle's already removing features from some releases; MySQL Classic edition has had InnoDB support removed, specifically.

Quote:
Originally Posted by BAILOPAN View Post
https://bugs.alliedmods.net/show_bug.cgi?id=3849

This had a patch in it, but there were problems - the original author kindly posted his working tree and offered it up to any takers. It would need to be re-patchified and submitted for review.
Aw, a shame. Unfortunately, my skill lies not in compiled languages, but in web apps and web app security.

I really hope that someone will pick this up and run with it.


Oh, and for what it's worth, I saw something in the ticket comments about getting the last insert id -- in the docs for PHP's PDO extension, this was suggested to get the last insert id for postgres.
Apparently you tack on "RETURNING columnname" to the end of the query, and use that to obtain the last insert id while avoiding a race condition (which would likely occur when using a second query): http://us3.php.net/manual/en/pdo.lastinsertid.php#86591
Obsidian is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-13-2011 , 14:44   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #6

Quote:
Originally Posted by Obsidian View Post
Oracle's already removing features from some releases; MySQL Classic edition has had InnoDB support removed, specifically.
Except that Classic is one of the enterprise support editions and is aimed at embedded devices. Also, as far as I can tell, it's never had InnoDB support.
__________________
asherkin is offline
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 07-19-2011 , 14:48   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #7

I am also interested in PostgreSQL for SourceMod
klausenbusk is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-07-2014 , 12:17   Re: Any chance for PostGreSQL support in Sourcemod?
Reply With Quote #8

There's acutally an postgres extension available now!
https://forums.alliedmods.net/showthread.php?t=236415

Spamming all postgres related threads!
__________________
Peace-Maker is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:58.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode