- 8
- 103 593
PostgresCourse.com
Приєднався 3 лис 2015
Backing up PostgreSQL users and groups (pg_dump and pg_dumpall)
The pg_dump utility is the first utility most Postgres users encounter when creating a backup. However, because the pg_dump utility is used to backup a single Postgres database, users and groups aren't included in the backup contents.
The solution to this issue is to first do a pg_dumpall using the -g option, which will backup global objects ... users and groups. This video demonstrates how to accomplish the backup of Postgres users and groups using pg_dumpall.
The solution to this issue is to first do a pg_dumpall using the -g option, which will backup global objects ... users and groups. This video demonstrates how to accomplish the backup of Postgres users and groups using pg_dumpall.
Переглядів: 22 154
Відео
Introduction to pg_stat_statements
Переглядів 5 тис.4 роки тому
This is quick tutorial to get up and running with pg_stat_statements, a PostgreSQL extension that provides statistics about database table perfomance.
Installing newer versions of PostgreSQL on RedHat/CentOS
Переглядів 8225 років тому
By default, Linux operating systems like RedHat or CentOS don't offer the latest versions of PostgreSQL for installation. This video shows how to get more recent packages for installation.
Debug PostgreSQL startup problems
Переглядів 1,6 тис.6 років тому
Simple approach towards getting rapid feedback about startup issues by invoking the postgres server executable directly.
Logical Replication with PostgreSQL 10
Переглядів 34 тис.7 років тому
A quick start tutorial to demonstrate the native logical replication feature in PostgreSQL 10.
Dump query results from PostgreSQL to file
Переглядів 4,5 тис.8 років тому
Quick tutorial on how to dump data from PostgreSQL
Upgrade PostgreSQL 9.4.x to 9.5
Переглядів 10 тис.8 років тому
Step-by-step tutorial showing how to do a manual major version upgrade of PostgreSQL.
Logging into PostgreSQL without password
Переглядів 26 тис.8 років тому
This video is a quick tutorial showing how to log in to the psql interactive terminal using: 1) The PGPASSWORD environment variable 2) The .pgpass file 3) The pg_hba.conf configuration file
good tutorial thanks
Buen video .. quiero sacar un backup y me sale el error ... Pg_dump: el esquema 2201 no existe... Portgresql-11.?
Really good, straight to the point and concise explanation of how to export a PostgreSQL DB!
thanks
So why use pg_dump at all if you can just use pg_dumpall without the -g parameter and have all the data and user objects in a single file?
Mine just refuses to produce the file on dump though. Frustrating af.
This was very helpful and calmly and clearly explained with high quality audio and video. Thank you SO much for that.
Gretae Video!
thanks :)
Thanks, that was very helpful
So to recap: If I have a postgres instance with 1 self created DB and I want to export both the DB and all the users, I use pg_dumpall without the -g flag? If I then import the dump file to a new postgres instance, will it overwrite the pre-existing default postgres schemes, i.e. information_schema, pg_catalog, pg_toast, public?
Hello Guys, I am an Oracle/SQL Server DBA. Currently I've a requirement for configuring postgresql database. Which am new to this environment and want to manage the database(Backup, Restore, Health Check, Alerts monitor). Kindly assist me on this
Helpful! Thanks
o melhor!
in result set of pg_stat_statements max_exec_time records e.g. 19sec while mean_exec_time records 0.7sec there is huge difference for calls around 500...I couldn't find the cause of this huge difference in time..could you please help
really a excellent tutorial , any best practice for wal files to be archived,
such a simple and clear turorial.
Great videos 👍🏼
Five years old but still very good.
nice explanation tq so much
Well explained, thanks. In some managed postgres DBs you can't run dumpall, because it needs super user permission. How can I dump users in that case?
Thanks do you viedo for pg restore ?
Very useful. Thanks. Do you offer PostgreSQL training?
Sure do - www.postgrescourse.com
Thanks, that's really helpful. Any plans to make a video covering how to create a backup from e.g a remote postgres running on AWS RDS onto a local backup machine? I'm trying to understand how I could automate daily backups to my extra linux machine.
No immediate plans to make a video covering that topic. However, almost all the binaries installed with PostgreSQL are simply client applications. Most of them have a "-h" option. That allows you to connect the client, in this case pg_dump, to a remote host. So, if you want to backup from RDS to a local server, you can simply run pg_dump on your local server and use "-h myrds-instance1.123456789012.us-east-1.rds.amazonaws.com" to connect to the remote RDS instance. The backup files will be created on the local server. From there, simply use cron to schedule the backup. There are several great backup utilities for PostgreSQL. However, for simple SQL backups of smaller databases, the approach above is easy to implement.
How to create these 2 nodes ?
Loved the simple no-bullshit kinda tutorial! Thanks
What I need: Logical replication from Posgres on Windows to Postgres in docker container on Linux
Very well explained , how can we add a table to an existing replication slot.
my postgresql.conf file was actually located in /etc/postgres/10/main/ the directory outputted by running the 'SHOW data_directory' command only had a postgres.auto.conf file
Thanks for the video. Its really clear. But why creat database Baltimore in 9.5, why not just restore from the logical backup from 9.4?
The logical backup file does not contain a 'CREATE DATABASE' statement. The logical backup file for a single database (from pg_dump) only contains the DDL to create objects INSIDE the database. So, before restoring the database, an empty one must be created.
@@postgrescourse Thank you so much.
this replication is synchronous? is possible write some things on node 2 and automatically replica for node 1 or only writing on node 1 for node 2?
Native logical replication, the approach demonstrated here, is not intended to be bi-directional.
You take requests?
can u know how to do postgresql replication in windows machine
I've followed everything step by step (pausing and playing the video), and still can't get machine 2 to replicate. I've tried 3 times now.
Were you able to get it to work?
What is the issue you are facing ? Any error message in postgres.log ?
Thank you, clearly tutorial.
a tip: watch series at flixzone. Been using them for watching lots of of movies recently.
@Forest Ismael Yup, been using Flixzone} for years myself =)
Awesomely explained, crisp and clear :+1:
Does anyone know where I can download a 9.0 installer for Windows?
Thanks, man. You fixed my problem!
I was trying to automate through Ansible, but wasn't able to set the Setup, now I'm, Thank you very much!!
Hi! in 3:54 of your video may I ask how did you exit inside .pgpass after entering hostname:port:postgress...?
'esc' and then type in :wd
greate Job Man your awsome
Can you create a new schema in node2 (subscriber), and read data from the subscription "employee" table?
Is it possible to login PostgreSQL with Windows Authentication. Please help with your answers.
Simple but High thinking to do in couple of minutes logical replication....I will try...
hi @PostgresCourse.com , is it possible if I create subscription to different schema name? on your tutorial, the schema name is the same which is public. But I want to replicate the master "public" schema to my slave "not-public" schema (schema name is different). is it possible to do that?
Hello, very good tutorial. I see that the replica is active - passive. I would like to know if there is a way for it to be active - active.
Thanks for making the information available.
Thanks for sharing this excellent tutorial. ¿Would you please make one about backup plans, and backups having in mind replication?
awesome; short, direct, clearly stated. THANK YOU!
is it possible to replicate only 1 or 2 tables and not all the tables? for example if we have 10 tables in node1 server but only 2 tables to be replicated to node2 server using this approach?
Yes. It is possible. You would simply alter the CREATE PUBLICATION command. Example: CREATE PUBLICATION mypublication FOR TABLE users, departments; This example is direct from the core documentation: www.postgresql.org/docs/10/static/sql-createpublication.html