improve static Realtime config loading from PostgreSQL:
commit7239ca9b8f453e321400c33a47cfe6e197ee040f
authorkpfleming <kpfleming@614ede4d-c843-0410-af14-a771ab80d22e>
Wed, 2 May 2007 23:57:23 +0000 (2 23:57 +0000)
committerkpfleming <kpfleming@614ede4d-c843-0410-af14-a771ab80d22e>
Wed, 2 May 2007 23:57:23 +0000 (2 23:57 +0000)
treedc50a18d1d51963d484004729a2bac9f6b59811b
parent161e935b76bb72f07b07b32a5ca30872fad37875
improve static Realtime config loading from PostgreSQL:
don't request sorting on fields that are pointless to sort on
use ast_build_string() instead of snprintf()
don't request the list of fieldnames that resulted from the query when we both knew what they were before we ran the query _AND_ we aren't going to do anything with them anyway

(patch by me, inspired by blitzrage's bug report about res_config_odbc)

git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62797 614ede4d-c843-0410-af14-a771ab80d22e
res/res_config_pgsql.c