How to move cryptDB to run on postgreSQL? - postgresql

How to move cryptDB to run on postgreSQL?
I want to run cryptDB on postgreSQL. Which items should I change in cryptDB?

Related

Is there any way of of get backup of postgres db in docker container without generating sql file?

I am new in Docker, I want to get a backup for my postgress database running in docker. All solutions i saw are offering to generate a dump sql script and restore db with running this script. But i dont want to do this? Is it possible backup and restore by migrating binary files of the db?
You can build Postgres image from plain empty Postgres db image. In Dockerfile you add SQL script which runs on db initialization (docker-entrypoint-initdb.d). The SQL script contains dblink to your backed up db and commands create table my_table as select * from my_table#remotedb. After docker build you have image with backup of your original database tables.
I do something similar with Oracle with more complexity (copying only subset of original database, preserving indexes etc.). Oracle docker image differs from PG in some properties but I believe the rough idea is applicable. It is some time ago I worked with PG so I won't advise you how to migrate binary files (though I believe it would be possible too).

Sql save the result of query to variable running on postgres docker

I have a SELECT query and I want to execute the result of this query as well. I think I need a variable to save it first and then execute. Some other answers to such question included commands from system bash, but I have a postgres running on my docker and I already entered my database in postgres. So how the command may look like?

Postgres and data folder changing on Windows

It is possible to change postgres data folder during its installation on Windows? For example run the postgres instalator with some parameter.
At this time Iam using this procedure: https://wiki.postgresql.org/wiki/Change_the_default_PGDATA_directory_on_Windows
Or is there another script which do that?

how to select all rows in MySQL workbench in ubuntu

I want to delete all rows content from my database using MySQL workbench in my ubuntu openrating system. How can i do this. Ctrl+A is not working
It would be much simpler if you just run a TRUNCATE query on your tables.

Are there any system tables auto update in postgresql when postgresql server startup?

I want to use Postgresql 9.2.2 to store my applications' data. I had to
build a trigger wich should based on Database level( When the database startup , this trigger will fired and executed.), Are there any tables auto update when postgresql server startup, in this way i could create a trigger on this table when server startup!
Thanks a lot and best regards!
You can't create triggers on system tables.
Two options occur to me:
Do something on application startup, not database startup.
Add a "psql" call to the end of the pg-server startup script.