Open klementszabolcs opened 1 year ago
@klementszabolcs Can you upload the source code or fork please?
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)
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.
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