avatarSmillew Rahcuef

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

1073

Abstract

<b>Tablespace in PostgreSQL</b></figcaption></figure><p id="e6e7"><b>Types of tablespaces:</b></p><ul><li><b>1.Default tablespace</b></li><li>when we are creating DB without specifying tablespace location by default objects are stored into pg_default 1.pg_default → all the user related objects are stored here 2.pg_global → all the system related objetcs are stored here</li><li><b>2. Non-Default tablespace</b> The DB objects are stored into specific location/directory Which was defined by user.</li></ul><p id="7986"><b>What are the advantages of using non-default tablespace?</b></p><p id="d9f2">1.logically maintaining the objects on specific directory 2.better I/O retention 3.Maintenance activities (like to take backup specific volume backup)</p><p id="d781"><b>To define a tablespace</b></p><div id="c707"><pre><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">TABLESPACE</span> tbspace1 <span class="hljs-keyword">LOCATION</span> <span class="hljs-string">'/u01/postgresql/data'</span>;</pre></div><p id="7f9c"><b>Note:</b></p><ul><li>The

Options

location must be an existing, empty directory that is owned by the PostgreSQL operating system user. All objects subsequently created within the tablespace will be stored in files underneath this directory.</li><li>Creation of the tablespace itself must be done as a database superuser, but after that you can allow ordinary database users to use it</li></ul><p id="7a6e"><b>To create DB with tablespace:</b></p><div id="31c2"><pre><span class="hljs-keyword">CREATE</span> <span class="hljs-keyword">DATABASE</span> Sports <span class="hljs-keyword">TABLESPACE</span> tbspace1;</pre></div><p id="bc64"><b>To view the tablespace:</b></p><ul><li>Here this system catalog to view the existing tablespace .</li></ul><div id="8592"><pre><span class="hljs-keyword">SELECT</span> * <span class="hljs-keyword">FROM</span> pg_tablespace;</pre></div><p id="7c7f"><b>List Command To View Tablespace:</b></p><ul><li>The below meta-command is also useful for listing the existing tablespaces.</li></ul><div id="5abd"><pre><span class="hljs-string">\db</span></pre></div></article></body>

One-Clappers Welcome

A new Medium publication

A group of one-clappers, laughing at YOUR article by Pexels

We’re a new publication and are PUMPED to see you here. In these submission guidelines, you will find:

1. Our mission
2. A selected list of writers we HATE
3. Rules we would like you to follow
4. How to become a writer for One-Clappers Welcome
5. What's next?
6. Our vision for the comment section

Our Mission

Many writers complain about the one-clappers:

At One Clappers Welcome, we LOVE one-clappers.

Our mission is to bring you articles for which you will never want to clap more than once.

We accept ALL the Medium one-clappers, no matter the reason for your kink.

You might be a one-clapper out of spite, hate, or lack of knowledge; it doesn’t matter to us. We love you all. If you’re one of the ones who feel rejected by all the mean writers complaining about your clapping habits, this is the place for you.

We see you.

We clap you. (only once)

A selected list of writers we hate

As you can imagine, we hate a lot of writers, but we didn’t want to appear too detestable and limited the list to the worst offenders. If we could clap 0.5 times for these writers, we would.

On top of the writers previously mentioned, we also hate this one.

Please follow the rules

Should you refuse to follow our rules, you will be blocked and, if possible, reported.

  • Rule #1 — you cannot clap more than once for the articles published in One-Clappers Welcome.
  • Rule #2 — you cannot clap less than once for said articles.
  • Rule #3 — Don’t proofread your stories, edit them, or use Grammarly. We find it helps people respect rules #1 and #2.

How to become a writer for One-Clappers Welcome

You can’t.

I’m the only one allowed to write for this new publication. I might accept my grandma in the future.

But you’re welcome to follow the publication.

What’s next?

Most likely, nothing. Hopefully, money.

Rest assured that if we write some article worthy of your single clap, we will publish it in One-Clappers Welcome.

Our vision for the comment section

We want to create a community.

Any time you read an article worthy of one lousy clap, please share a link in the comment section of this article. We will be more than happy to clap only once for it.

Are you looking for articles where you’re allowed to clap 50 times? Check out these:

Humor
Satire
Writing On Medium
Social Media
Writers Life
Recommended from ReadMedium