Assume that the following two tables exist.
T_media:
Mediaid flags
11111 1
22222 1
33333 1
44444 1
T_media_locations:
Mediaid locationid
11111 999999
22222 999999
33333 999999
Now there is a need to count the number of media in the flags = 1
The code is as follows:Copy code Instance description3.1 view the number of bytes required to store a specified valueDavid = # select pg_column_size (1 );Pg_column_size---------------- 4(1 row)David = # select pg_column_size (10000 );
First, Introduction
PostgreSQL provides a number of system management functions to view tables, indexes, table spaces, and the size of the database, described in detail below.
second, the Database object dimension function
The name
I have a lazy idea. How should this good idea begin? Well, this is an appropriate little madness: Why not build our own MongoDB version directly on the basis of postgres? It sounds far-fetched, but it's simple and real.
When the NoSQL movement was
Recently contacted pgrouting. Record the learning results.
Using pgrouting for path planning can only import line data, and mutiline will fail. Note This when importing data.1. Create a database
There are two methods:1. Create a pgadmin
Original linkAbsrtact: Not accumulate Kuibu not even thousands of miles, want to become a qualified database administrator, first of all should have solid basic knowledge and problem processing ability. This article refers to the pivotal official
Tutorial on creating a MongoDB copy based on PostgreSQL, postgresqlmongodb
I have an idea of laziness. How can I start with this idea? Well, this is an appropriate little crazy: Why don't we build our own MongoDB version on the basis of ipvs? It
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.