Database Research & Development

  • Home
  • NoSQL
    • NoSQL
    • Cassandra
  • Databases
    • Database Theory
    • Database Designing
    • SQL Server Coding Standards
    • SQL Server
    • PostgreSQL
    • MySQL
    • Greenplum
    • Linux
  • Interviews
    • SQL Server Interviews
    • MySQL Interviews
    • SQL Puzzles
  • DBA Scripts
    • SQL Server DBA Scripts
    • PostgreSQL DBA Scripts
    • MySQL DBA Scripts
    • Greenplum DBA Scripts
  • Home
  • Blog Archives !
  • (: Laugh@dbrnd :)
  • Contact Me !
sqlserverinterviews
Home PostgreSQL

PostgreSQL

  • PostgreSQL: How to Delete all duplicate rows Except one
  • PostgreSQL: Create Index on Full Text Search tsvector Data
  • PostgreSQL: Example of SERIALIZABLE Isolation Level
  • PostgreSQL: Disable Non-Durable parameters and Improve Server Performance
  • PostgreSQL: How to remove accents (diacritic signs) from lexemes
  • PostgreSQL: Find Factorial, Absolute, Negation value
  • PostgreSQL: Script to convert User to Super User
  • PostgreSQL: Bash Shell Script to execute psql command in UNIX / LINUX
  • PostgreSQL: Don’t take backup until your Database is changed
  • PostgreSQL: What is IMMUTABLE, STABLE, VOLATILE and COST of Function
  • PostgreSQL: join_collapse_limit to force join order laid out by explicit JOINs
  • PostgreSQL: Optimize the Function by defining Volatility Classification
  • PostgreSQL: Script to find all Objects of a Particular User
  • PostgreSQL: How to get the list of all Schemas of a database in PSQL?
  • PostgreSQL: How to get the list of all privileges of a database in PSQL?
  • PostgreSQL: How to get the list of all tables and all databases in PSQL?
  • DBRND listed by feedspot in the Category of Top 10 PostgreSQL Blogs
  • PostgreSQL: How to parse the hyphenated word?
  • PostgreSQL: How to obtain a Lock on Table?
  • PostgreSQL: Change the Default Data Directory in Linux
  • PostgreSQL: Move Main Data Directory in Linux (Ubuntu 16.4)
  • PostgreSQL: Example of CROSSTAB query, for PIVOT arrangement
  • PostgreSQL: How to Recover postgres User Password?
  • PostgreSQL: Do Modulo Operation using MOD Function
  • PostgreSQL: How to create RECURSIVE VIEW?
  • PostgreSQL: Explain Group By ROLLUP with an example
  • PostgreSQL 9.5: BRIN Index Maintenance using brin_summarize_new_values
  • PostgreSQL: DELETE JOIN with an example
  • PostgreSQL: How to reload the Server Configuration Files?
  • PostgreSQL: Get the name of Current Database
  • PostgreSQL: How to Validate the Email Address Column?
  • PostgreSQL: SHOW ALL; For checking the Configuration of Server
  • PostgreSQL: Get a full length column string in PgAdmin
  • PostgreSQL: Use RAISE Statements to debug your Query and Function performance
  • PostgreSQL: VACUUM VERBOSE to find data pages and dead row versions
  • PostgreSQL: Use pgbench for testing the Load Performance of Server
  • PostgreSQL: Set listen_addresses for multiple Host Addresses
  • PostgreSQL: Get the Milliseconds from the Timestamp
  • PostgreSQL: Script to check the status of Shared Buffer (Use pg_buffercache)
  • PostgreSQL: Load table into Buffer Cache, Increase the Speed of Accessing data
  • PostgreSQL: Can’t update a table without finishing execution of function
  • PostgreSQL: Use pg_resetxlog to recover the deleted pg_xlog data
  • PostgreSQL: Stop the new User from creating a new Table
  • PostgreSQL: How to drop all Tables?
  • PostgreSQL: Improve Query Performance by Extended Statistics
  • PostgreSQL: How to switch the Database Connection?
  • PostgreSQL: Full Text Search using tsvector
  • PostgreSQL: Script to check the status of AutoVacuum for all Tables
  • PostgreSQL: How to parse the URL?
  • PostgreSQL: Create UNLOGGED Table for Good Performance
  • PostgreSQL: Do before populating a New Database
  • PostgreSQL: Create TABLE IF NOT EXISTS
  • PostgreSQL: UPDATE JOIN with an example
  • PostgreSQL is the DBMS of the Year 2017
  • PostgreSQL: Generate Number series and Date time series or sequence
  • PostgreSQL: Calculate Percent Rank and Cumulative Percent Rank
  • PostgreSQL: Log the DROP TABLE Statement
  • PostgreSQL: Script to find the Used space by TOAST Table
  • PostgreSQL: Generate CSV Log File, Insert into Table
  • PostgreSQL: Understand TIMESTAMP vs TIMESTAMP WITH TIME ZONE
  • PostgreSQL: Set wait time for Deadlock Detection (deadlock_timeout)
  • PostgreSQL: Important Statistics Views for Monitoring the Server
  • PostgreSQL: Different options for Data Type Casting
  • PostgreSQL: Check the progress of running VACUUM
  • PostgreSQL: How to take Compressed Backup of Database?
  • PostgreSQL: How to Create and Use Tablespace?
  • PostgreSQL: Cannot Create a table with Reserved Keyword
  • PostgreSQL: Understand the Proof of MVCC (Use XMIN Column)
  • PostgreSQL: Must know about DATE ADD operation
  • PostgreSQL: Allow single NULL for UNIQUE Constraint Column
  • PostgreSQL: Create Index using ORDER BY (ASC/DESC)
  • PostgreSQL: Set Application Name for each Session and Connection
  • PostgreSQL: Best Practice – Create Extension in Schema
  • PostgreSQL: Duplicate or Copy Table with Data, Constraint, Index
  • PostgreSQL 10: Introduced Native Table Partitioning
  • PostgreSQL 10: Important – Name change from xlog to wal and location to lsn
  • PostgreSQL 10: Trace the Status of Transaction (Commit, In Progress, Rollback, Aborted)
  • PostgreSQL 10: Introduced XML Table – to store XML Document
  • PostgreSQL 10: Introduced IDENTITY Column for generating Sequence
  • PostgreSQL 10: Now Launched and Available for Use
  • PostgreSQL: SIMILAR operator for pattern matching
  • PostgreSQL: Important Parameters for Query Planner Configuration
  • PostgreSQL: Replace String data in all the Columns of a Table
  • PostgreSQL: Get the data difference between two Tables
  • PostgreSQL: Create a Copy of Table or Create a Duplicate Table
  • PostgreSQL: Copy Table Data from another Table (INSERT INTO SELECT)
  • PostgreSQL: Move Table with Data from one Schema to another Schema
  • PostgreSQL: pgAdmin 4 Error – Unrecognized configuration parameter “bytea_output”
  • PostgreSQL: Don’t Create or Drop Temp Table in LOOP, otherwise will get OID does not exist
  • PostgreSQL: Take Schema backup or Copy Schema into another Server
  • PostgreSQL: Which port or server default select from multiple servers
  • PostgreSQL: Install pgAdmin 4 Desktop Mode in Ubuntu 16.04
  • PostgreSQL: How to uninstall PostgreSQL 9.6 from Ubuntu
  • PostgreSQL: Different options to check If Table Exists in Database
  • PostgreSQL: ERROR – canceling statement due to statement timeout
  • PostgreSQL: ERROR – must be superuser to COPY to or from a file
  • PostgreSQL: FATAL Error – remaining connection slots are reserved for non-replication superuser connections
  • PostgreSQL: Generate ALTER statements to Rename table and column name in Lower case
  • PostgreSQL: Use PSQL command line variable to make your SQL Queries Dynamic
  • PostgreSQL: Find a list of active Temp tables with Size and User information
  • PostgreSQL: Script to find the count of objects for each Database Schema
  • PostgreSQL: Non Superuser can kill their own running queries
  • PostgreSQL: How to Insert text with single quote and apostrophe?
  • PostgreSQL: Use array_agg, to get DISTINCT value for each Column
  • PostgreSQL: Compare two String Similarity in percentage (pg_trgm module)
  • PostgreSQL: Use pg_dump | SSH | psql, Copy Table data from a Server to another Server
  • PostgreSQL 9.5: Multiple columns or keys in ON CONFLICT clause
  • PostgreSQL: Can we create In memory Database or Table?
  • PostgreSQL 9.6: Introduced CROSSTABVIEW (pivot) in PSQL
  • PostgreSQL 9.6: Introduced pg_visibility module to examine visibility map
  • PostgreSQL 9.6: Introduced wait_event_type and wait_event new columns of pg_stat_activity
  • PostgreSQL 9.6: pg_notification_queue_usage function to monitor the queues and notifications
  • PostgreSQL 9.6: Introduced pg_config system view to paths and compilation details
  • PostgreSQL 9.6: Introduced a pg_blocking_pids function to get blocking process id
  • PostgreSQL: Use pg_backend_pid to get your current Process ID (Session ID)
  • PostgreSQL: Create Audit Trigger, for logging or Auditing your Database DML Transactions
  • PostgreSQL: Script to find Orphaned Sequence, not owned by any Column
  • PostgreSQL: regexp_split_to_array to Split String using different Delimiters
  • PostgreSQL: Shell script to copy table data from one server to another server
  • PostgreSQL: Shell script to store psql SELECT output into Variable
  • PostgreSQL: Shell script to store psql result in RECORD ARRAY using WHILE LOOP
  • PostgreSQL: Find a Table location using pg_relation_filepath
  • PostgreSQL: pg_rotate_logfile to Switch and Rotate the server log file (pg_log)
  • PostgreSQL: Script to copy Table Data from one Schema to another Schema
  • PostgreSQL: How to take a backup of your Table?
  • PostgreSQL: Script to search any Text from the Stored Function
  • PostgreSQL: Improve the performance of Query Sort operation by setting work_mem
  • PostgreSQL: How to Disable or Enable Foreign Key Constraint of a Table
  • PostgreSQL: How to find last Day of the Month
  • PostgreSQL: Script to find Version and Release Information
  • PostgreSQL: Must know about pg_terminate_backend and pg_cancel_backend before killing to any session
  • PostgreSQL: How to apply ACCESS EXCLUSIVE LOCK MODE on Table?
  • PostgreSQL Error – FATAL: database role “root” does not exist in Linux
  • PostgreSQL: Script to find size of all Databases of Server
  • PostgreSQL: Script to find Index Size and Index Usage Statistics
  • PostgreSQL psql FATAL: error Peer authentication failed for user
  • PostgreSQL: How to Install PostgreSQL 9.6 on Ubuntu 16.04?
  • PostgreSQL: Rebuild all Indexes using REINDEXDB utility and REINDEX command
  • PostgreSQL: Increase the speed of UPDATE query using HOT UPDATE (Heap only tuple)
  • PostgreSQL: How to check Table Fragmentation using pgstattuple module
  • PostgreSQL: pg_ident.conf to map Operating System Username and Database Username
  • PostgreSQL: Network Address Type – INET to IP Addresses (IPv4, IPv6)
  • PostgreSQL: ISN Data Types to store ISBN, ISMN, ISSN, ISBN13, UPC
  • PostgreSQL: How to create a Materialized View and increase the Query Performance
  • PostgreSQL: Difference between pg_log, pg_clog and pg_xlog log directories
  • Database News: Now Uber switched from PostgreSQL to MySQL
  • PostgreSQL: CLUSTER – Improve Index Performance (No default cluster index)
  • Database Theory: What is difference between MySQL and PostgreSQL?
  • PostgreSQL: How to calculate RANK in a query (DENSE_RANK())
  • PostgreSQL: Using PSQL, Disable Autocommit Globally
  • PostgreSQL: Create Prepared Statement, to increase Session Performance
  • PostgreSQL: Performance Test of RETURNS TABLE vs OUT Parameters
  • PostgreSQL 9.4: UNNEST() WITH ORDINALITY to generate String Array Sequence Number
  • PostgreSQL: Copy Database to another Server in Windows (pg_dump – backup & restore)
  • PostgreSQL: Force on Planner to use Sequential Scan or Index Scan
  • PostgreSQL 9.6: Powerful Parallel Query Processing – Full Performance Test
  • PostgreSQL: How to generate a DeadLock in a Database (ERROR: deadlock detected)
  • PostgreSQL: Fibonacci Series Function for Database Developer Interview
  • PostgreSQL: Which Filter combinations and Operators can be used with Index?
  • PostgreSQL: How the Rows are stored Physically using ctid?
  • PostgreSQL: What is Visibility Map (VM)?
  • PostgreSQL: What is a Free Space Map (FSM)?
  • PostgreSQL: What is TOAST (The Oversized-Attribute Storage Technique)
  • PostgreSQL 9.5: SELECT JSON Formatted data using jsonb_pretty()
  • PostgreSQL: Find which object assigns to which user or role and vice versa
  • PostgreSQL: Script to find total Live Tuples and Dead Tuples (Row) of a Table
  • PostgreSQL: How we can create Index on Expression?
  • PostgreSQL: CREATE PIVOT TABLE to arrange Rows into Columns form
  • PostgreSQL: File System Level Backup to just Copy DATA Directory
  • PostgreSQL: Create or Change default Tablespace of Table to Migrate on SSD
  • PostgreSQL: Script to find TOP 10 Long Running Queries using pg_stat_statements (Day 2/2)
  • PostgreSQL: Track ALL SQL Query Execution Statistics using pg_stat_statements Extension (Day 1/2)
  • PostgreSQL: Using EXPLAIN ANALYZE, Know your Query Execution Plan
  • PostgreSQL 9.1 is going to Shutdown, no more Support and Release Update
  • PostgreSQL: Script to find information about the Locks held by Open Transactions (pg_locks)
  • PostgreSQL: Generate full Database Script using PGAdmin Tool
  • PostgreSQL: Important Statistics Table, Used by the Query Planner
  • PostgreSQL: Why we should use ‘$$’ double dollar in PG/pgSQL Block
  • PostgreSQL: STRING_AGG() to Concatenate String Per Each Group (Like SQL Server STUFF())
  • PostgreSQL: What are the Differences between SQL and PL/pgSQL language in Function
  • PostgreSQL 9.5: Introduced BRIN – Block Range Index with Performance Report
  • PostgreSQL: Tuning Checkpoint Parameters to Increase the Performance of Bulk Data Load
  • PostgreSQL 9.4: How to Convert JSON ARRAY Elements into String ARRAY
  • PostgreSQL: Change or Move Default Data Directory in Windows
  • PostgreSQL: How to increase the performance of Bulk Insertion (INSERT)
  • PostgreSQL: Optimized way to get first Record per each GROUP (using DISTINCT ON, LATERAL)
  • PostgreSQL: password authentication failed for user “postgres” in Ubuntu
  • PostgreSQL: Example of Trigram Index for Full Text Search using pg_trgm Extension
  • PostgreSQL: Example of Partial UNIQUE Composite Index
  • PostgreSQL: Optimized way to populate new Column (UUID) in a Large Table
  • PostgreSQL: ERROR – data type character varying has no default operator class for access method “gist”
  • PostgreSQL: Example of RANGE Data Type
  • PostgreSQL: Multiple GROUP BY using GROUPING SETS in Single SQL Query
  • PostgreSQL: COMMIT, ROLLBACK and SAVEPOINT for Transactions
  • PostgreSQL: Why New User can access all Databases without any Grants
  • PostgreSQL 9.5: Insert IF not Exists, Update IF Exists (Insert ON CONFLICT option)
  • PostgreSQL 9.5: Using FOR UPDATE SKIP LOCKED Option SELECT only Committed Records
  • PostgreSQL 9.5: How to Concatenate and Overwrite JSON Document
  • PostgreSQL: CREATE DOMAIN to Abstract Data Type and Enforce Business Rules
  • PostgreSQL 9.4: Using FILTER CLAUSE, multiple COUNT(*) in one SELECT Query for Different Groups
  • PostgreSQL: Force Autovacuum for running Aggressive
  • PostgreSQL: The Internal path of a Query Execution to Obtain a Result
  • PostgreSQL: How to change the Database User Password in Linux
  • PostgreSQL: Script to find all Default Values of the Columns
  • PostgreSQL: Why psql is running without Password?
  • PostgreSQL: How to convert Table Data into JSON formatted Data?
  • PostgreSQL: Script to kill all idle sessions and connections of a Database
  • PostgreSQL: Create an auto incrementing Primary Key using a Custom Sequence
  • PostgreSQL: The Schema Search Path and change the default PUBLIC Schema
  • PostgreSQL 9.5: Row Level Security by Example
  • PostgreSQL: How to create an index on JSON Property?
  • PostgreSQL: Should we create Multiple Databases OR create Multiple Schemas?
  • PostgreSQL: How to generate a Random Token String?
  • PostgreSQL: How to Install PostgreSQL 9.4 on Ubuntu 14.04?
  • PostgreSQL: Script to check a Fillfactor value for Tables and Indexes
  • PostgreSQL: How to measure the size of a Table Row and Data Page?
  • PostgreSQL: The Awesome Table Fillfactor to speedup UPDATE and SELECT statement
  • PostgreSQL: Using json_agg() aggregate table data into a JSON formatted array
  • PostgreSQL: Update the Table data using Subquery
  • PostgreSQL: Update the Timestamp column with the use of TRIGGER
  • PostgreSQL: Working with Universally Unique Identifier – UUID Data type
  • PostgreSQL: Best way for Password Encryption using pgcrypto’s Cryptographic functions
  • PostgreSQL: Populate DROP FUNCTION script with the type of Parameters
  • PostgreSQL: Script to create a copy of the Existing Database
  • PostgreSQL 9.4: Indexing on jsonb Data Type (Part 3/3)
  • PostgreSQL 9.4: Introduced JSON Functions and Operators (Part 2/3)
  • PostgreSQL 9.4: The JSON data type is Awesome (Part 1/3)
  • PostgreSQL: Important Parameters for better Performance
  • PostgreSQL: Composite UNIQUE Constraint does not consider NULL Values
  • PostgreSQL: How to Allow Remote Connection to Connect Database
  • PostgreSQL: Performance difference between VARCHAR and VARCHAR(n)
  • PostgreSQL: Prevent New User to access Newly Created Database
  • PostgreSQL: New Powerful feature of PostgreSQL 9.4
  • PostgreSQL: Script to Stop all Connections and Force to Drop the Database
  • PostgreSQL: Execute VACUUM FULL without Disk Space
  • PostgreSQL: Short note on VACUUM, VACUUM FULL and ANALYZE
  • dbrnd.com published 125 Posts: This Gratitude Post for Readers
  • PostgreSQL: Important Parameters to enable Log for all Queries
  • PostgreSQL: Function to truncate all Tables created by Particular User
  • PostgreSQL: SELECT Last Inserted ID or Sequence Value
  • PostgreSQL: How to Clear Cache of the Database Sessions
  • PostgreSQL: Script to Kill all Running Connections and Sessions of a Database
  • PostgreSQL: Why identifiers are Case-Sensitive
  • PostgreSQL: Script to Create a Read-Only Database User
  • PostgreSQL: Script to find Source and Destination of All Foreign Key Constraint
  • PostgreSQL: Configure Your Database in free Cloud Storage for POC
  • PostgreSQL: Insert – Update or Upsert – Merge using writable CTE
  • PostgreSQL: Fast way to find the row count of a Table
  • PostgreSQL: Script to find a Missing Indexes of the schema
  • PostgreSQL: Script to find the unused and duplicate index
  • PostgreSQL: Important Database Administrator Commands Part II (PSQL)
  • PostgreSQL: Important Database Administrator Commands Part I
  • PostgreSQL: Script to find which group roles are granted to the User
  • PostgreSQL: Script to Find Table and Column without comment or description
  • Script to find sessions that are blocking other sessions in PostgreSQL
  • Script to find active sessions or connections in PostgreSQL
  • String Array as an input parameter in PostgreSQL
  • Import or Export a CSV File using PostgreSQL COPY Command
  • How to find size of Database and Table in PostgreSQL
  • PostgreSQL Dynamic SQL
  • PostgreSQL Paging Query using LIMIT and OFFSET
  • How to change ownership for all objects in PostgreSQL
  • PostgreSQL [Video]: Cross Database Queries using DbLink Extension
  • PostgreSQL XML Type
  • How to create job in PostgreSQL
  • How to reset postgres user password in windows ?
Jun 20, 2017Anvesh Patel
About Me!

I'm Anvesh Patel, a Database Engineer certified by Oracle and IBM. I'm working as a Database Architect, Database Optimizer, Database Administrator, Database Developer. Providing the best articles and solutions for different problems in the best manner through my blogs is my passion. I have more than six years of experience with various RDBMS products like MSSQL Server, PostgreSQL, MySQL, Greenplum and currently learning and doing research on BIGData and NoSQL technology. -- Hyderabad, India.

About DBRND !

dbrnd

This is a personal blog (www.dbrnd.com).

Any views or opinions represented in this blog are personal and belong solely to the blog owner and do not represent those of people, institutions or organizations that the owner may or may not be associated with in professional or personal capacity, unless explicitly stated.

Feel free to challenge me, disagree with me, or tell me I’m completely nuts in the comments section of each blog entry, but I reserve the right to delete any comment for any reason whatsoever (abusive, profane, rude, or anonymous comments) - so keep it polite.

The content of this website is protected by copyright. No portion of this website may be copied or replicated in any form without the written consent of the website owner.

Recent Comments !
  • Anvesh Patel { Sure will do... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Anvesh Patel { Great... }
  • Older »
Follow Me !
  • facebook
  • linkedin
  • twitter
  • youtube
  • google
  • flickr
© 2015 – 2019 All rights reserved. Database Research & Development (dbrnd.com)
Posting....