Git Product home page Git Product logo

Comments (5)

thibaultcha avatar thibaultcha commented on September 7, 2024

You should have a look in your pg_hba.conf file. psql is not connecting over a local IPv4 connection but over a Unix socket; hence, although you used the same user, you might get a different result.

from pgmoon.

yjdwbj avatar yjdwbj commented on September 7, 2024

pg_hba.conf

 host    all             mqtt             192.168.25.10/32       trust                                                                                                                                      
 host    all             mqtt             192.168.8.31/32        trust     

I'm test psql connect on other host , different with postgresql server . postgresql server run on the 192.168.25.100, psql client run on the 192.168.25.10. lua script also run on the 192.168.25.10.

from pgmoon.

ttfkam avatar ttfkam commented on September 7, 2024

There's something else going on here. psql when passed a host parameter (-h 192.168.25.100) does use an IPv4 TCP/IP connection, not a local Unix socket. (Note: psql couldn't use a local Unix socket to connect to a remote host.)

@yjdwbj, I'm just grabbing at straws, but try specifying a port number as a number, not a string.

  port = 5433

instead of

  port = "5433"

from pgmoon.

thibaultcha avatar thibaultcha commented on September 7, 2024

Yeah my bad, I totally overlooked the issue here; just so used to seeing the same issue over and over again 😅

from pgmoon.

ttfkam avatar ttfkam commented on September 7, 2024

Coming back to this now that the holidays are over. Did you solve your problem?

If not, how did you install pgmoon? I'm wondering if this error is coming from missing dependencies like luasocket if you're running from the console. If you're in OpenResty, the socket connection should be coming from nginx.

from pgmoon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.