Smartface, technologies and decay
@antonrevyako
Post #1246
1.74K
TH @nosingularity
Showing posts older than #1247 · Back to latest
Forwarded from .и в продакшен (Alex Yumashev)
pdf.ai, ChatPDF, AskYourPDF внезапно стали не нужны.
SELECT current_schemas();
The SEARCH_PATH is not used inside views or UDFs. All unqualifed objects in a view or UDF definition will be resolved in the view’s or UDF’s schema only.
CREATE OR REPLACE DATABASE db1;
CREATE SCHEMA sh1;
CREATE TABLE public.t1(c1 int);
CREATE VIEW sh1.v1 AS
SELECT * FROM t1;
SQL compilation error:
Object 'DB1.SH1.T1' does not exist or not authorized.
CREATE OR REPLACE DATABASE db1;
CREATE SCHEMA sh1;
CREATE TABLE sh1.t1(c1 int);
INSERT INTO sh1.t1(c1) VALUES (1);
CREATE FUNCTION public.test()
RETURNS NUMBER
LANGUAGE SQL
AS '1';
CREATE VIEW sh1.v1 AS
SELECT *, test() c2 FROM t1;
SELECT * FROM sh1.v1;
C1 C2
1 1
CREATE FUNCTION sh1.test()
RETURNS NUMBER
LANGUAGE SQL
AS '2';
SELECT * FROM sh1.v1;
C1 C2
1 2
Forwarded from Технологический Болт Генона

- Anti-pattern #1. Using exotic databases for the wrong reasons
- Anti-pattern #2. Caching things unnecessarily
- Anti-pattern #3. Storing everything and a kitchen sink
. . .
Most importantly, study your database (and SQL). Learn it, love it, use it, abuse it. Spending a couple of days just leafing through that Postgres manual to see what it can do will probably make you a better engineer than spending more time on the next flavor-of-the-month JavaScript framework hotness. Again.
There will be no singularity Photo


