Code Monkey home page Code Monkey logo

lsm3's Introduction

PostgreSQL Database Management System
=====================================

This directory contains the source code distribution of the PostgreSQL
database management system.

PostgreSQL is an advanced object-relational database management system
that supports an extended subset of the SQL standard, including
transactions, foreign keys, subqueries, triggers, user-defined types
and functions.  This distribution also contains C language bindings.

PostgreSQL has many language interfaces, many of which are listed here:

	http://www.postgresql.org/download

See the file INSTALL for instructions on how to build and install
PostgreSQL.  That file also lists supported operating systems and
hardware platforms and contains information regarding any other
software packages that are required to build or run the PostgreSQL
system.  Copyright and license information can be found in the
file COPYRIGHT.  A comprehensive documentation set is included in this
distribution; it can be read as described in the installation
instructions.

The latest version of this software may be obtained at
http://www.postgresql.org/download/.  For more information look at our
web site located at http://www.postgresql.org/.

lsm3's People

Contributors

knizhnik avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

watch-later

lsm3's Issues

does lsm3 work with Postgres 12 or Greenplum?

I got following error while making it:

lsm3.h:46:9: error: unknown type nameBTOptions46 |         BTOptions   nbt_opts;       /* Standard B-Tree options */
      |         ^~~~~~~~~
lsm3.c: In functionlsm3_truncate_index’:
lsm3.c:209:32: error: implicit declaration of functionBuildDummyIndexInfo’; did you meanBuildIndexInfo’? [-Werror=implicit-function-declaration]
  209 |         IndexInfo* indexInfo = BuildDummyIndexInfo(index);
      |                                ^~~~~~~~~~~~~~~~~~~
      |                                BuildIndexInfo
lsm3.c:209:32: warning: initialization ofIndexInfo *fromintmakes pointer from integer without a cast [-Wint-conversion]
lsm3.c: In functionlsm3_merge_indexes’:
lsm3.c:236:37: error: ‘BTREE_AM_OIDundeclared (first use in this function); did you meanBTREE_MAGIC’?
  236 |         base_index->rd_rel->relam = BTREE_AM_OID;
      |                                     ^~~~~~~~~~~~
      |                                     BTREE_MAGIC
lsm3.c:236:37: note: each undeclared identifier is reported only once for each function it appears in
lsm3.c:243:21: error: implicit declaration of functionBTreeTupleIsPosting’ [-Werror=implicit-function-declaration]
  243 |                 if (BTreeTupleIsPosting(itup))

lsm3 index bloat?

HI, lsm3 index more larger than btree index:

postgres=# create index idx on t using lsm3(id) with (unique=true);
postgres=# insert into t select generate_series(1,10000000), md5(random()::text);

postgres=# \dt+ t
                           List of relations
 Schema | Name | Type  |  Owner   | Persistence |  Size  | Description 
--------+------+-------+----------+-------------+--------+-------------
 public | t    | table | postgres | permanent   | 651 MB | 

 public | idx              | index | postgres | t           | permanent   | 69 GB      | 

ERROR: relation "idx_top0" already exists

HI,
when i drop the lsm3 index and reindex it, will generate error like below:

postgres=# drop index idx;
DROP INDEX
postgres=# create index idx on t using lsm3(id) with (unique=true);
ERROR:  relation "idx_top0" already exists

Can't start postgresql

If I add lsm3 to preloaded libraries I get this error:
cannot request additional shared memory outside shmem_request_hook

WARNING: you don't own a lock of type RowExclusiveLock

I have added several lsm3 indexes to a table and am now bulk-loading data in to it using COPY t FROM STDIN via psql. I am getting "WARNING: you don't own a lock of type RowExclusiveLock" 2-6 times per 100000 rows. The rows do get inserted, so this might be ignore-able?

I just did the same bulk-load using btree indexes without the lsm3 extension loaded and I do not get the warnings.

I am on PostgreSQL 13.3 on Debian. If there is any additional information I can provide, let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.