[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Ashikali Ashikali

2/19/2009 9:37:00 AM

Can anyone tell me what are the 3rd and 4th argument of PGconn#connect
method
in ruby ? .
--
Posted via http://www.ruby-....

2 Answers

Dan Webb

2/19/2009 9:45:00 AM

0

aHR0cDovL3Bocm9nei5uZXQvcnVieWxpYnMvcmRvYy9jbGFzc2VzL1BHY29ubi5odG1sDQoNCnBn
b3B0aW9ucyBhbmQgcGd0dHk/IEknbGwgZ2l2ZSB0aGVtIG9uZSB0aGluZywgdGhleSdyZSByZWFs
bHkgdXNlZnVsIG5hbWVzLiANCg0KcGdvcHRpb25zOgliYWNrZW5kIG9wdGlvbnMgKFN0cmluZykN
CnBndHR5Ogl0dHkgdG8gcHJpbnQgYmFja2VuZCBkZWJ1ZyBtZXNzYWdlIChpZ25vcmVkIGluIG5l
d2VyIHZlcnNpb25zIG9mIFBvc3RncmVTUUwpIChTdHJpbmcpDQoNCkNoZWVycywNCkRhbg0KDQpH
b29nbGUncyByZWFsbHkgaGVscGZ1bCA7KQ0KDQoNCi0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0t
DQpGcm9tOiBhc2hpa2FsaS5tQGdtYWlsLmNvbSBbbWFpbHRvOmFzaGlrYWxpLm1AZ21haWwuY29t
XSANClNlbnQ6IDE5IEZlYnJ1YXJ5IDIwMDkgMDk6MzcNClRvOiBydWJ5LXRhbGsgTUwNClN1Ympl
Y3Q6IFBHY29ubg0KDQpDYW4gYW55b25lIHRlbGwgbWUgd2hhdCBhcmUgdGhlIDNyZCBhbmQgNHRo
IGFyZ3VtZW50IG9mIFBHY29ubiNjb25uZWN0DQptZXRob2QNCmluIHJ1YnkgPyAuDQotLSANClBv
c3RlZCB2aWEgaHR0cDovL3d3dy5ydWJ5LWZvcnVtLmNvbS8uDQoNCg==

Ashikali Ashikali

2/19/2009 11:41:00 AM

0

Dan Webb wrote:
> http://phrogz.net/rubylibs/rdoc/classes/P...
>
> pgoptions and pgtty? I'll give them one thing, they're really useful
> names.
>
> pgoptions: backend options (String)
> pgtty: tty to print backend debug message (ignored in newer versions of
> PostgreSQL) (String)
>
> Cheers,
> Dan
>
> Google's really helpful ;)

I had a look on this URL . I think that pgoptions is psql command line
options . Because when the error comes to this methods it says hint as
follows ,

Error: ./TransactionProcessor.rb:15:in `connect': FATAL: invalid
command-line arguments for server process (PGError)
HINT: Try "postgres --help" for more information.
from ./TransactionProcessor.rb:15:in `initialize'
from ./TransactionProcessor.rb:30:in `new'
from ./TransactionProcessor.rb:30

coding : PGconn.connect(
POSTGRES_SERVER,POSTGRES_PORT,"-x","",POSTGRES_DATABASE,POSTGRES_USERNAME,POSTGRES_PASSWORD
)
here ,
-x means Turn on the expanded table formatting mode. This is
equivalent to the \x command .

Can you tell me what is pgoptions ?
--
Posted via http://www.ruby-....