Tuesday 21 June 2022

How To Restore/Load PostgreSQL Database From .BAK/Backup File Using Comm...



Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



First, I am taking the backup as a .bak file

Enter the password for the Postgres user... for me its the root

The Command link is in the video description... Please subscribe
my channel to get updates...Thanks for watching

pg_restore -h localhost -d dvdrental -U postgres -p 5432 D:\dvdrental.bak

How To Restore/Load PostgreSQL Database From .BAK/Backup File Using Command Prompt/CMD PostgreSQL,
How To Restore PostgreSQL Database From .BAK/Backup File,
How To Load PostgreSQL Database From .BAK/Backup File,
PostgreSQL Database From .BAK/Backup File,
Load PostgreSQL Database,
.BAK,
Backup,
Command Prompt,
CMD,
PostgreSQL,
How To Restore PostgreSQL Database,
How To Load PostgreSQL Database

Sunday 12 June 2022

How To Schedule A Job Using pgAgent Jobs In PostgreSQL Database Using pg...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



first, lets create a table.

Now, I will schedule a job and insert record into the table through
scheduler

I scheduled it to run it from 9:05 PM, currently I am at 09:00 PM

It is 09:03 PM now, and 2 minutes remaining...
Let's check if there is any data or not.
There should be no record now.

Here we can see the records are inserted...

In the next video, I will show

How to perform some complex operations through a scheduled job 
in PostgreSQL

Subscribe my channel....

create table emp(id numeric, name character(30),salary numeric);

select * from emp;

Download pg_Agent for PostgreSQL

 

In this blog, I will provide the download link to pg_Agent for the PostgreSQL database. So that you can install it and schedule a job in PostgreSQL.

 


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.

How To Add/Install pgAgent Jobs In Existing PostgreSQL Database | Postgr...

 


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.


In this blog, I will provide the download link to pg_Agent for the PostgreSQL database. So that you can install it and schedule a job in PostgreSQL.

Download pgAgent Here

 

 

Sunday 5 June 2022

How To Install pgAgent Jobs To Schedule A Job In PostgreSQL Database || ...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



Saturday 4 June 2022

How To Describe Tables In PostgreSQL Using SQL Shell psql And pgAdmin ||...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



SELECT COLUMN_NAME  
FROM information_schema.COLUMNS  
WHERE TABLE_NAME = 'table_name';  

SELECT COLUMN_NAME
FROM information_schema.COLUMNS  
WHERE TABLE_NAME = 'actor'; 

SELECT *
FROM information_schema.COLUMNS  
WHERE TABLE_NAME = 'actor'; 

How To Show Tables In PostgreSQL Database Using SQL Shell psql And pgAdm...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.




How To Show Tables In PostgreSQL Database Using SQL Shell psql And pgAdmin || PostgreSQL Tutorials Syntax ------- SELECT * FROM pg_catalog.pg_tables WHERE schemaname = 'schema name' AND schemaname != 'information_schema' ; Query ------- SELECT * FROM pg_catalog.pg_tables WHERE schemaname = 'public' AND schemaname != 'information_schema' ; Syntax ------- select * from information_schema.tables where table_schema='schema name' and table_type = 'BASE TABLE OR VIEW'; Query ------- --Will display all tables select * from information_schema.tables where table_schema='public' and table_type = 'BASE TABLE'; --Will display all views select * from information_schema.tables where table_schema='public' and table_type = 'VIEW'; How To Show Tables In PostgreSQL Database Using SQL Shell psql And pgAdmin PostgreSQL Tutorials PostgreSQL Tutorials How To Show Tables In PostgreSQL Database Using SQL Shell psql And pgAdmin Show Tables In PostgreSQL Database Show Tables In PostgreSQL Database Using SQL Shell psql Show Tables In PostgreSQL Database Using pgAdmin Show Tables In PostgreSQL Database PostgreSQL Database Tables

How To Drop Table In PostgreSQL Using SQL Shell psql and pgAdmin || Post...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.




CREATE TABLE IF NOT EXISTS public.employees
(
    empid bigint NOT NULL,
    salary real NOT NULL DEFAULT 100,
    name character varying(50) COLLATE pg_catalog."default" NOT NULL,
    deptno bigint DEFAULT 1,
    gender character varying(15) COLLATE pg_catalog."default" DEFAULT 'Female'::character varying,
    CONSTRAINT emp_pk PRIMARY KEY (empid)
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS public.employees
    OWNER to postgres;

COMMENT ON TABLE public.employees
    IS 'This table will contain data for employees';
How To Drop Table In PostgreSQL Using SQL Shell psql and pgAdmin
Drop Table In PostgreSQL
How To Drop Table In PostgreSQL
PostgreSQL Tutorials
Drop Table In PostgreSQL Using SQL Shell psql
Drop Table In PostgreSQL Using pgAdmin
Table In PostgreSQL
SQL Shell psql
SQL
Shell
psql
pgAdmin

How To Resolve/Fix The Application Has Lost The Database Connection in P...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.




How To Resolve/Fix The Application Has Lost The Database Connection in PostgreSQL Database pgAdmin

1. Go to Services
2. Find PostgreSQL service and check the status
3. The service is stopped. It can be accidentally or forcefully done.
4. Now start the service.
5. Click on Continue, it will establish the connection again.
6. The service is running. The issue is fixed.

How To Resolve Or Fix Could Not Connect To Server Connection Refused In ...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



How To Resolve Or Fix Could Not Connect To Server Connection Refused In PostgreSQL Database pgAdmin

How To Resolve Could Not Connect To Server Connection Refused In PostgreSQL

How To Fix Could Not Connect To Server Connection Refused In PostgreSQL

Resolve Connection Refused In PostgreSQL

Resolve Could Not Connect To Server In PostgreSQL

Resolve Or Fix Connection Refused In PostgreSQL

Resolve Or Fix Connection Refused In pgAdmin

Thursday 2 June 2022

How To Create Table In PostgreSQL Using pgAdmin And SQL Shell psql || Po...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.



-- Table: public.employees

-- DROP TABLE IF EXISTS public.employees;

CREATE TABLE IF NOT EXISTS public.employees
(
    empid bigint NOT NULL,
    salary real NOT NULL DEFAULT 100,
    name character varying(50) COLLATE pg_catalog."default" NOT NULL,
    deptno bigint DEFAULT 1,
    gender character varying(15) COLLATE pg_catalog."default" DEFAULT 'Female'::character varying,
    CONSTRAINT emp_pk PRIMARY KEY (empid)
)

TABLESPACE pg_default;

ALTER TABLE IF EXISTS public.employees
    OWNER to postgres;

COMMENT ON TABLE public.employees
    IS 'This table will contain data for employees';
how to create table in postgresql using pgadmin and sql shell psql

how to create table in postgresql

how to create table in postgresql using sql shell psql


create table in postgresql using pgadmin and sql shell psql

create table in postgresql

create table in postgresql using sql shell psql

table in postgresql, pgadmin,sql,shell,psql,sql shell psql,postgres,postgresql tutorials,postgresql
knowledge 360,akram sohail

How To Create Table In PostgreSQL Using pgAdmin And SQL Shell psql, PostgreSQL Tutorials

Wednesday 1 June 2022

How To Resolve/Fix Error Database Is Being Accessed By Other Users Other...

Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.




ERROR:  database "dvdrental" is being accessed by other users
DETAIL:  There is 1 other session using the database.

REVOKE CONNECT ON DATABASE dvdrental from public;  

SELECT pg_terminate_backend(pg_stat_activity.pid) 
FROM pg_stat_activity  
WHERE pg_stat_activity.datname = 'dvdrental';

drop database dvdrental;



How To Resolve/Fix Error Database Is Being Accessed By Other Users Other Session Using The Database


How To Delete or Drop PostgreSQL Database Using pgAdmin And SQL Shell ps...

Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.




How to Select Database In PostgreSQL Using pgAdmin and SQL Shell psql ||...


Only 3.9% of viewers are subscribing to my channel 😓.
I request you to please give click on Subscribe button.
It really helps me grow 😢.