How to install plv8 in postgresql 14 for windows? - postgresql

I tried installing plv8 from
[1]: https://martendb.io/v3/documentation/admin/installing-plv8-windows
but it did not work.

The challenge is Windows and Version 14. The solution you point to has only the files going up to PG Version 12. It works on 12, I used that on 12.
But I am also trying to find the windows version of this extension for PG 14. So far, people have updated the Linux builds for working with 14.
The correct, full answer is to download the source from github.
Install Version 14 of PG (You need the header files). Install the tools spelled out in the PLV8\Windows directory README. And then compile everything locally. This is what the Linux users do to get the binaries for their specific system.
we are grabbing the source from here: https://github.com/plv8/plv8/tree/master
We are working on this right now. We will push the compiled (under windows 10 x64) Versions up to another GIT and publish the link for others as our way of supporting this. (But it's not trivial, this stuff is made more for the Linux side of things)

Related

Extensions not saved across devices in VSCode Portable Edition v1.74.3

I am using version 1.74.3 of the VSCode Portable Edition, stored on a pendrive, and I am encountering an issue with extensions not being saved across devices. When I install an extension in the portable version, it does not persist if I move the file to another computer. I expect the installed extensions to be saved in the portable version and accessible on any device where I run the portable version from the pendrive. Any assistance in resolving this issue would be greatly appreciated.
Operating System: Windows 10
VSCode Portable Edition Version: 1.74.3
I have tried installing extensions in the VSCode Portable Edition, but they do not persist when I move the file to another computer. I expected the installed extensions to be saved within the portable version and accessible on any device where I run the portable version from the pendrive.
This sounds like this issue raised on GitHub: "Portable VS Code Extensions do not Transfer to Other Computers (#171569)"
which is reported to be fixed in the insiders build for v1.75
While you're waiting for 1.75 to be officially released to the general public, you can switch to the insiders version.
Update: VS Code 1.75 was released on 2023 Jan 2nd at 11:50 AM PST. See the releases on their GitHub. The release notes can be found here.

How to install Modsecurity 2.9.6 on Debian 11 with Apache2?

If you want you use the new CRS versions you need at least 2.9.6 of libapache2-mod-security2. see:
https://coreruleset.org/installation/
Is this possible on Debian11? I searched for backports but couldn't find any method on getting this version. Default Debian 11 Version 2.9.3
If you want you use the new CRS versions you need at least 2.9.6 of libapache2-mod-security2. see: https://coreruleset.org/installation/
Thanks, we (CRS team) should add some links to this documentation.
Is this possible on Debian11? I searched for backports but couldn't find any method on getting this version. Default Debian 11 Version 2.9.3
We are working on it, that Debian 11 accepts this version too. Actually, the Debian's package source repository already has the patched 2.9.3:
https://salsa.debian.org/modsecurity-packaging-team/modsecurity-apache/-/blob/bullseye/debian/changelog
You can download that and make an own package.
If you want to avoid to make a custom/own package, follow this link, and you can try the Digitalwave's ModSecurity repository. There you can find the 2.9.6 for Debian 10, 11, Ubuntu 18.04, 20,04 and 22.04.
Note: I'm CRS developer, and Debian maintainer. I made the packages for Debian too.

postgresql/postgis looking for wrong version folder when creating extension in Azure DevOps pipeline

I'm building a pipeline on Azure DevOps with a Linux image as a base (ubuntu-latest). Here I'm installing PostgreSQL version 12 with PostGIS.
Here's what I install:
sudo apt-get install -y postgresql-12 postgresql-client-12 postgresql-12-postgis-3 postgresql-12-postgis-3-scripts
First I tried to install it without mentioning any version numbers, but then I got the error mentioned below and I followed recommendations to specifically do it like this.
Hence the specifically mentioned version numbers
No special additions, just a plain installation of Postgres.
Installation is going fine without any errors.
Then when I create my database and connect to it, I do CREATE EXTENSION POSTGIS; and I get this error:
psql:./create_tables.sql:3: ERROR: could not open extension control file "/usr/share/postgresql/14/extension/postgis.control": No such file or directory
I'm pulling my hair for some time now about this and I totally don't get where it gets that reference to a version 14 folder from. There is absolutely no version 14 installed.
I also tried to pull the Debian packages from the Postgres.org instead of the Ubuntu libraries, I tried to install PostGIS 2.5 and PostGIS 2.5 scripts packages. But whatever I do, I get the same result. Once I start the pipeline, the image gets built and Postgresql and PostGIS installed and then I get the same error as a result.
Did anyone have this same experience? Where could this library folder reference for version 14 come from?
EDIT 2022/05/21: I've added some checks to the scripts and when checking the version of PostgreSQL(via SELECT version(); ) it gives version 14 (!), which at least explains the error. Apparently version 14 indeed IS installed and runs on the default port 5432. Version 12 that is explicitly installed also runs, it runs on port 5433 (checked via cat /etc/postgresql/12/main/postgresql.conf ). I now explicitly start version 12 and connect in my scripts to port 5433, so I can continue, but I still wonder where that version 14 installation comes from.
Postgres 14 is pre-installed on the Microsoft Hosted agent for ubuntu-20
Reference:
https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#postgresql

Install two different versions of MySQL Workbench

My problem is the same that this one: https://dba.stackexchange.com/questions/253777/is-it-possible-to-run-multiple-versions-of-mysql-workbench
I need to use mysql workbench 8 for mysql server version 8.0.27 and mysql workbench 6 for a version 5 mysql server.
The problem is that when installing workbench 8 it deletes existing workbench with lower version.
I've tried to install Workbench6 on a completely different location to see if the installation does not find it but I it finds it anyway.
Also tried to install a 32 bit version of workbench 6 but again, version 8 delete it when installing.
Found some comments saying to enable multiple instances in menu -> edit -> preferences -> others, but this is only to open multiple instances of the same version.
I've looked for a portable version of workbench 6 but had no luck.
I don't understand why this problem is not having an answer by MySQL, even the MySQL forum doesnt have a solution or even an explanation why this is not possible.
I use a Vm for that porpose. where an "old 5.7.xx is installed alongside a workbench 6.3that work with that well, because the newer version don't do.
You can use for that purpose also a linux server as vm not only windows
Found a portable version of Workbench 5.2.47. I've upload it to my github.
Although I use this software with no problems until now, this is not from my authorship, use it at your own risk.
Download latest zip archive (version 6.3.8 and earlier has it) from here: https://downloads.mysql.com/archives/workbench/
Look out because x64 archive wasn't working in my case but 32bit works fine.
Unzip to different folder and that's it.

How to run VSCode on Centos6

My company is using an old CentOS6 and they wont update it before months (years?). This is totally out of my control and it obviously makes using up to date software a nightmare.
I would like to use Visual Studio Code as a C++ IDE but its intellisense plugin is running with glibc >=2.14 and Centos6 comes with glibc 2.12.
It also needed some more dependencies I managed to recompile and load with LD_LIBRARY_PATH. I tried compiling a new glibc and load it as well but it segfault, as expected.
I used the compiled version of VSCode from the official website.
I tried compiling it myself but it requires to download many files and my virtual machine does not have Internet, I can only transfer files through ftp. I created a local yarn repository, compiled all appropriate version of Yarn, NodeJS but a compiled binary is trying to download electron and I have no idea where to put the file to trick him into thinking it's downloaded already (assuming I could).
There are standalone solutions to run software on old distribution, like AppImage but VSCode is not part of their apps.
Would you have any idea on how to run VSCode on Centos6? Did you ever try to compile VSCode without and Internet Connection?
Currently the only viable solution I see would be to create an AppImage at home.
To run VS Code Server on CentOS 6, I followed the "glibc and libstdc ++ on RHEL / CentOS 6 update" article from here.
Perhaps this option will help you.