How to free space on server when pg_wal of Postgresql-12 dramatically increase size? - postgresql-12

I am facing problem server nearly full space because of Postgresql. I went through several hours still could not find solution to free space on server, I am using Postgresql v12 on Centos7 I don't know what wrong to my configuration the directory /var/lib/pgsql/12/data/pg_wal size 210GB.
Thank in advance.

You can enable archiving by using archive_command and place all logs in some other directory with compressed format. Please have a look on below link for more on WAL archiving.
https://www.postgresql.org/docs/10/continuous-archiving.html

Related

Can a LyX/LaTeX file be too large to create a PDF?

I've been working on my bachelors thesis in LyX for about a month without encountering any problems and today, all of a sudden, when creating a PDF LyX just loads indefinitely and even asks me at some point if I want to stop the PDF creating since it takes such a long time. Am I doing something wrong? I have about 100 pages and the PDFs I created lately have been around 100 mb large since they hold very high res images and a lot of them.
In case anyone is struggling with the "convert" functionality usage in Lyx, this is some additional info:
Initially I struggled to make eps to load and be displayed on screen as well as to get it exported to PDF file. I saw that the Lyx latest install had already all "convert blah-blah $$ii $$o" commands predefined and it was still not working.
Here is what worked for me:
sudo mv /etc/ImageMagick-6/policy.xml /etc/ImageMagick-6/policy.xmlout
Here there are two parts -
a) imagemagick needs to be installed on the machine as it provides most of the converters. Following command on terminal would check if imagemagick is installed or not on your system.
identify -version
b) Imagemagick tools should be "allowed" to run - "convert" being one of those. You need to relax some default security policies for that. That is what the above renaming of the policy file does. Detailed information is given in answer to this question on ubuntu forum.
Note - This security policy relaxation is not recommended for web-server machines. Only desktop users may take the risk.

What is the file size limit? (NodeMCU, Esplorer)

I recently tried to host a little web interface from my ESP8266. But something kept failing until I realized that a bigger file (around 10kb) was corrupt. Well, not really corrupt, but simply incomplete. And no matter how I changed it, the file was always cut off after a certain amount of characters.
My compiled NodeMCU firmware is about 649kb in size, so there should easily be enough space. I mean my board has at least 4MB of storage (32m), so that should be plenty to store my lua, html and css files!
I used Esplorer to upload the files btw.
So what exactly is the limit here?
Is it a memory issue? A flash storage issue? An issue related to Esplorer?
Is it somehow possible to get bigger files onto my board?
edit:
I should mention that uploading the init.lua file always worked even if it was around 10kb. Maybe the uploading mechanism is different for the init.lua file?
Alright, here's the long form of my comment above. My best guess is (was) that this be an issue with ESPlorer. Whenever I look at its source code I'm actually surprized how well it usually works.
At https://frightanic.com/iot/tools-ides-nodemcu/ I compiled a list of tools and IDEs for NodeMCU. I suggest you pick a different uploader and try again. The NodeMCU-Tool for example is solid and it's definitely a lot better maintained than ESPlorer is.

Atom is running slow when edit a file which is over 500 lines

when I use Atom to edit javascript files there has some performance issues, if the js script lines is over a number of amount, e.g, 500, to scroll the file or move cursor will be stuck. It should not because hardware problems and 500 lines is also not a big amount. Is there something I can do to make Atom to run smoothly when I edit a big size file? Thanks,
As you can read in this article, this is an ongoing issue with Atom and is currently being dealt with by the team. I don't believe it has anything to do with computer performance.
I currently run an i7 machine and, when opening large (typically minified) files, the editor will run extremely slow and, in some instances, crash completely.
Hopefully we can see a resolution soon.
Finally I found the problem occurs is because a plugin -- linter-jscs, 500 lines is not big amount, after disable this plugin, editing is on right way.
Have you considered the possibility that your machine may just be slow?
I understand this doesn't directly address your question, but if you're not bound to Atom you could experiment with other text editors. I personally recommend Visual Studio Code. Have a look:
https://code.visualstudio.com/download
Although you've posted a solution, it may be worth considering using a package such as Timecop, which displays information about where time is spent while Atom loads. You can also check similar information in the Settings > Packages view, which will list how much time each installed package will add to the startup time (see the Flight Manual section on packages).

How to keep samba connection with TOSMBClient Library

I'm following TOSMBClient library link:TOSMBClient to share file from pc to my iPhone,This library is working to connect and copy file to my iPhone. But it takes very long time to connect to host and every time when copy file is done samba will disconnect. I want to keep samba connection.
Have anyone have idea or used to work with TOSMBClient library please help or suggest idea.
I'm the original developer of TOSMBClient. :)
The library is a thin Objective-C wrapper around another library called libdsm. The process of connecting to a host is at libdsm's level, so if your particular connection is slow, there's not a lot that can be done on the TOSMBClient level. It might be worth reporting an issue on libdsm's Github repo describing your hardware setup.
The connection dropping after a file copy operation is complete is curious. I can't be sure where that issue might be happening. Again, more information would be required. A complete set of steps to reproduce would be great. If you get the chance, feel free to file another issue on the GitHub!

Reinstalling Rad Studio 2007

I need to uninstall and re-install Delphi 2007.
I have downloaded the CodeGearRADStudio2007_Dec2007.iso and burned it to disc.
I have exported the following registry keys:
HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Known Packages
HKEY_CURRENT_USER\Software\Borland\BDS\5.0\GExperts-1.3
HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Experts
Is there anything else I need to do before uninstalling ? I'm not sure if uninstaller is going to ask me to preserve registry keys so I assume that I am going to have to import registry keys after installing.
I am also assuming that the iso image contains any previous updates or hotfixes and that is the latest complete install, is that a correct assumption ?
Very nervous about doing this, any guidance would be greatly appreciated!
John
The first thing I'd do is making an image backup of the system partition (e.g. with CloneZilla), including the working Delphi installation. Then, restore that backup to a new hard disk an check that it boots. After that, you can always go back to your previous installation and look up any settings you might have missed.

Resources