Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A postgresql block

A technology for reading and writing modules and block storage devices, applied in the field of PostgreSQL blocks, can solve the problems of security loopholes, data security cannot be guaranteed, and operators' professional knowledge requirements are high, and achieve the effect of security and read and write speed.

Active Publication Date: 2018-11-09
深圳市华讯方舟光电技术有限公司 +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0027] Second, the expansion of the file system is also very troublesome
[0028] Third, the migration of databases between different systems is extremely complex, requiring high professional knowledge of operators
[0029] Fourth, the database data files are directly exposed to the operating system, and there are potential security risks in the data, so data security cannot be guaranteed. This is a huge security hole for some use environments that require a high level of security.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A postgresql block
  • A postgresql block
  • A postgresql block

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] Such as Figure 4 As shown, the PostgreSQL block of the present invention is the smallest unit allocated to the data table in the PostgreSQL database system, and the storage capacity of the PostgreSQL block is equal to 4MB.

[0076] Of course, it is also possible that the storage capacity of the PostgreSQL block is greater than 4KB.

[0077] It may also be that the storage capacity of the PostgreSQL block is a positive integer multiple of 8KB.

[0078] It may also be that the storage capacity of the PostgreSQL block is a natural number times of 2 of 8KB.

[0079] More may be, the storage capacity of the PostgreSQL block is 1MB, 2MB, 8MB, 16MB, 32MB, 64MB, 128MB, 256MB, 512MB or 1024MB.

Embodiment 2

[0081] Such as Figure 4 As shown, the PostgreSQL block storage device read-write module of the present invention is a PostgreSQL block storage device read-write module that manages the aforementioned PostgreSQL block in the PostgreSQL block storage device.

[0082] The PostgreSQL block storage device read-write module can be constructed on the PostgreSQL database system.

[0083] The PostgreSQL block storage device read-write module manages the PostgreSQL blocks in the PostgreSQL block storage device through the PostgreSQL block-data table mapping relationship table and the free PostgreSQL block table.

[0084] The PostgreSQL block-data table mapping relationship table includes fields Relfilenode, Reltablespace, Forknum, Blockid, Blockno, and the free PostgreSQL block table includes fields Blockid, Isfree, and Dev.

[0085] The PostgreSQL block storage device read-write module has the following sub-modules:

[0086] Allocate submodules of PostgreSQL blocks,

[0087] Recycle the submodul...

Embodiment 3

[0103] Such as Figure 4 As shown, the present invention is based on the data reading and writing method of the PostgreSQL block storage device, using the PostgreSQL block storage device read and write module as described above to read and write the PostgreSQL block as described above.

[0104] A. In the database background driver layer, the driver of the PostgreSQL block storage device read-write module completes the operation of the block file, and its main tasks are:

[0105] a. Through the file handle manager to manage the read and write interface of the upper-level business to the underlying device, to achieve a high-concurrency read and write interface;

[0106] b. Realize the overwriting of the PostgreSQL block storage device, directly locate the specified location of the PostgreSQL block storage device, and write the specified length of data;

[0107] B. According to the PostgreSQL block-data table mapping relationship table oid and table space, locate the designated position o...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Provided is a PostgreSQL block. The PostgreSQL block is a minimum unit assigned to a data table in a PostgreSQL database system, and the storage capacity of the PostgreSQL block is larger than 4KB. According to the present invention, the query speed and the read-write speed of the database are improved, the data in the database are more secure, and the database service and the data are separated.

Description

Technical field [0001] The invention relates to a PostgreSQL database storage device, in particular to a PostgreSQL block for storing PostgreSQL data tables in a PostgreSQL database. Background technique [0002] With the development of the Internet, mobile Internet and the Internet of Things, we have ushered in an era of massive data, and more and more data are stored in the database, and the query time we need is getting smaller and smaller. Many application scenarios now require background storage with high concurrency, high capacity, and high response. The demand for high-speed storage forces us to abandon real-time indexing, and the large amount of data scanning is restricted by the IO on the storage side. In the current PostgreSQL database system, high-concurrency multi-database scanning needs to encounter basically random reads, and at the same time, the throughput of ordinary disks can no longer meet the demand. [0003] In order to adapt to the application scenarios of l...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F3/06
CPCG06F16/00
Inventor 朱晓伟
Owner 深圳市华讯方舟光电技术有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products