Skip to content
Advertisement

Tag: postgresql

Can not INSERT INTO Postgresql

simplechan In other words, I installed a message board named simplechan, but I can not log in to a site dedicated to the administrator. Because you need a password to get there. I do not know the password. I entered in psql as follows In “simplechan/sql/create_table_query.sql” it was drawn as follows. — tables for moderator things create extension if not

bash list postgresql databases over ssh connection

I am doing some work on a remote Postgresql database. When I log into the server this command works on bash: $ psql -c “l” Remote login over ssh is possible using: But why doesn’t it work from this command? This is working, also “psql -l” but I don’t understand why I have to use backslash 3 times here? Answer

psql – Mac trying to connect postgreSQL in Ubuntu system installed in a virtual machine in remote server

Apologize in front, maybe the situation here is a bit complicated. I searched everywhere online but couldn’t find a perfect solution, plus I have tried almost all the solutions mentioned in other posts. Situation: So I have a postgreSQL database installed in a Ubuntu system. The system is actually a virtual machine on the VMware workstation 12, which is installed

Including a date/time in a file name dumped from psql

I’m planning on running a .sh script that will run periodically through cron on linux. I’m running postgres 8.4 on centos. My script will have something like this in it: I know there are other ways to dump tables into csv files but this is the only one I could use without admin rights. My problem is naming the files.

Schedule a function that belongs to an R package

I’m trying to build an R package whose goal is to run a series of analyses by taking input data and writing output data to an external database (PostgreSQL). Specifically, I need a set of operations to be scheduled to run on a daily basis. Therefore, I have written some bash scripts with R code (using the header #!/usr/bin/env Rscript)

Tired of creating /run/postgresql and setting read and execute writes after every reboot

I’m running Arch Linux, I installed PostgreSQL as any other arch package. I’m running postgres with a local database located in my user directory. (postgres -D /home/user/data/) When I do so, I get the error FATAL: could not create lock file “/run/postgresql/.s.PGSQL.5432.lock”: No such file or directory. Creating the directory /run/postgresql and giving the postgres user access solves this problem

Advertisement