omniti-labs / pg_amqp

AMQP Support for Postgres
https://labs.omniti.com/labs/pg_amqp
206 stars 63 forks source link

login failed #39

Open klementszabolcs opened 1 year ago

klementszabolcs commented 1 year ago

with large number of connection it is sometimes happening "handshake error" in rabbit log. In postgresql log was the "login failed on broker 1" message. I have changed the libamqp to 0.10.0, and in p g_amqp.c, because some function call have changed in libamqp. The connection error have disappeared, and the size of so file became cca1/2. pg_amqp.txt

altair86 commented 7 months ago

@klementszabolcs Can you upload the source code or fork please?

klementszabolcs commented 1 month ago

this work on rockylinux9: wget https://github.com/alanxz/rabbitmq-c/archive/refs/tags/v0.14.0.zip unzip v0.14.0.zip cd rabbitmq-c.0.14.0 mkdir build (ha nincs) cd build cmake .. cmake --build . --target install

cd ../.. rm src/librabbitmq/ cp ../rabbitmq-c-0.10.0/librabbitmq/.h src/librabbitmq cp ../rabbitmq-c-0.10.0/include/.h src/librabbitmq cp ../rabbitmq-c-0.10.0/build/librabbitmq/CMakeFiles/rabbitmq.dir/.o src/librabbitmq cp (the attached makefile and pg_amqp.c)

klementszabolcs commented 1 month ago

ujlib3.zip

klementszabolcs commented 1 month ago

i think this is in the top 10 most major/useful extension for pg, because very fast, and transactional, and with this it is possible make event base asynchronous communications between databases. For my own part, the absolute cool language for consumer is the crystal lang. The only alternative is the multicorn extension.