my_extension is a PostgreSQL extension that enhances data management and operations with additional functionality. This extension provides features such as custom table creation, arithmetic calculations, and more.
Creating a Custom Table
my_extension extension allows you to create a custom table named
my_table. This table consists of an auto-incrementing
id column and a
add function takes two integer values,
b, as input and returns their sum.
SELECT add(1, 2);
-- Result: 3
complex_add function accepts an array of integers,
numbers, as input and returns the sum of all the numbers in the array.
SELECT complex_add(ARRAY[1, 2, 3, 4, 5]);
-- Result: 15
New Functionality in Version 1.1.0
multiply function takes two integer values,
b, as input and returns their product.
SELECT multiply(3, 4);
-- Result: 12
To install the
my_extension extension, follow these steps:
Clone the repository:
git clone https://github.com/IshaanAdarsh/my_extension.git
Change to the extension directory:
Build and install the extension:
make make install
Enable the extension in your PostgreSQL database:
CREATE EXTENSION my_extension;
For more details and examples, refer to the official documentation.
my_extension are welcome! If you encounter any issues, have suggestions, or want to contribute new features, please open an issue or submit a pull request on the GitHub repository.
This project is licensed under the PostgreSQL License.