KILLING SESSIONS

KILLING SESSIONS: In PostgreSQL, you can terminate or “kill” a session using the pg_terminate_backend function. This function allows you to forcefully terminate a specific session, which can be helpful in scenarios where a session is unresponsive or causing issues. We can kill PostgreSQL session in… Read More

PostgreSQL: Contrib Modules

Contrib Modules: In PostgreSQL, “contrib” stands for “contributed modules”. These are additional functionalities and features developed by the community that are not part of the core PostgreSQL distribution, but can be easily added to enhance the capabilities of the database. Contributed modules are distributed separately… Read More

Remote Connections in PostgreSQL

Remote Connections in PostgreSQL: Remote connections will allow you to connect to a PostgreSQL server from a different machine or network. In this article, we will explore the steps to establish remote connections in PostgreSQL and provide best practices for securing these connections. This article… Read More

ENVIRONMENT VARIABLES IN PostgreSQL:

ENVIRONMENT VARIABLES IN PostgreSQL: These are useful to avoid hard-coding database connection information into simple client applications, for example. To start a PostgreSQL server, you can run the following command:

However, you can also use an environmental variable to create a shortcut for this… Read More

PostgreSQL: Clauses and filters

Clauses and filters: Like clause:

LIMIT Clause: The LIMIT clause is used to restrict the number of rows returned in the result set. It is useful when you want to retrieve only a certain number of rows.

OFFSET Clause: It is used in conjunction… Read More